/**
 * TreeSitterParser handles WASM initialization and parser instantiation
 * for the v2.9 AST-based transition.
 */
export declare class TreeSitterParser {
    private static parser;
    private static languages;
    private static initPromise;
    static init(options: {
        webTreeSitterWasm: string | Uint8Array;
        grammars?: Record<string, string | Uint8Array>;
    }): Promise<void>;
    private static doInit;
    static loadLanguage(name: string, grammarWasm: string | Uint8Array): Promise<void>;
    static setLanguage(name: string): void;
    static parse(code: string, language?: string): any;
    static getLanguage(name?: string): any;
    static resetForTest(): void;
}
