import type { ITokenStream } from "@syuilo/aiscript/parser/streams/token-stream.js"; import type * as Ast from "@syuilo/aiscript/node.js"; import { ParserError } from "../../errors/index.js"; /** * ```abnf * Params = "(" [IDENT [":" Type] *(SEP IDENT [":" Type])] ")" * ``` */ export declare function parseParams(s: ITokenStream, e: ParserError[]): { name: string; argType?: Ast.TypeSource; }[] | null; /** * ```abnf * Block = "{" *Statement "}" * ``` */ export declare function parseBlock(s: ITokenStream, e: ParserError[]): (Ast.Statement | Ast.Expression)[] | null; export declare function parseType(s: ITokenStream, e: ParserError[]): Ast.TypeSource | null;