import type { GenericNode, MessageInfo } from 'myst-common'; import type { VFile } from 'vfile'; import type { Handler, ITexParser, Options, StateData } from './types.js'; export declare const DEFAULT_HANDLERS: Record; export declare class TexParser implements ITexParser { tex: string; raw: GenericNode; ast: GenericNode; file: VFile; data: StateData; options: Options; handlers: Record; stack: GenericNode[]; currentPosition: GenericNode['position']; unhandled: string[]; constructor(tex: string, file: VFile, opts?: Options); top(): GenericNode; warn(message: string, node: GenericNode, source?: string, opts?: MessageInfo): void; error(message: string, node: GenericNode, source?: string, opts?: MessageInfo): void; pushNode(el?: GenericNode | GenericNode[]): void; text(text?: string, escape?: boolean): GenericNode> | ({ type: "text"; value: string; } & { position: import("myst-spec").Position | undefined; }) | undefined; renderChildren(node: GenericNode): void; renderBlock(node: GenericNode, name: string, attributes?: Record): void; renderInline(node: GenericNode | GenericNode[], name: string, attributes?: Record): void; addLeaf(name: string, attributes?: Record): void; openNode(name: string, attributes?: Record, isLeaf?: boolean): void; openParagraph(attributes?: Record): void; closeParagraph(): void; openBlock(attributes?: Record): void; closeBlock(): void; closeNode(type?: string): GenericNode; } //# sourceMappingURL=parser.d.ts.map