import { ParseError, Reference, SyntaxNode } from "../artifacts/shared.js"; export type WasmParser = WebAssembly.Instance & { exports: { memory: WebAssembly.Memory; input: WebAssembly.Global; inputLength: WebAssembly.Global; heap: WebAssembly.Global; _init: () => number; program: () => number; }; }; export declare function Create(wasm: BufferSource): WasmParser; export declare function Parse(ctx: WasmParser, data: string, refMapping?: boolean, entry?: string): ParseError | { reachBytes: number; isPartial: boolean; reach: Reference | null; root: SyntaxNode; }; export declare function toString(): string;