import * as t from '@rekajs/types'; import { StringifierOpts } from './stringifier'; export type onParseNode = (node: t.ASTNode) => t.ASTNode | undefined | null | void; export type ParserOpts = { onParseNode?: onParseNode; }; /** * A singleton that exposes parsing utilities */ export declare class Parser { static parseProgram(source: string, opts?: ParserOpts): t.Program; static parseExpression(source: string, opts?: Partial; }>): T; static stringify(type: t.ASTNode, opts?: StringifierOpts): string; }