import * as $ from "@tonstudio/parser-runtime"; import type * as Ast from "../ast/ast"; import type { FactoryAst } from "../ast/ast-helpers"; import type { SyntaxErrors } from "./parser-error"; import type { AstSchema } from "../ast/getAstSchema"; import type { Source } from "../imports/source"; type Context = { ast: AstSchema; err: SyntaxErrors<(loc: $.Loc) => never>; }; export declare function replaceEscapeSequences(stringLiteral: string, loc: $.Loc, ctx: Context): string; export declare const getParser: (ast: FactoryAst) => { parse: (source: Source) => Ast.Module; parseExpression: (code: string) => Ast.Expression; parseImports: (source: Source) => Ast.Import[]; parseStatement: (code: string) => Ast.Statement; }; export type Parser = { parse: (source: Source) => Ast.Module; parseExpression: (sourceCode: string) => Ast.Expression; parseImports: (source: Source) => Ast.Import[]; parseStatement: (sourceCode: string) => Ast.Statement; }; export { dummySrcInfo, SrcInfo } from "./src-info";