import Parser from "web-tree-sitter"; import type { SupportedLang } from "./lang.js"; export declare class ParserRuntimeNotReadyError extends Error { constructor(); } export interface ParsedTree { readonly format: SupportedLang; readonly parser: Parser; readonly tree: Parser.Tree; readonly root: Parser.SyntaxNode; readonly source: string; delete(): void; } export declare function ensureParserReady(): Promise; export declare function isParserReady(): boolean; export declare function parseStructuredTree(format: SupportedLang, source: string): ParsedTree; export declare function parseStructuredTreeAsync(format: SupportedLang, source: string): Promise; export declare function parseStructuredTreeForFile(filePath: string, source: string): ParsedTree | null; export declare function parseStructuredTreeForFileAsync(filePath: string, source: string): Promise; //# sourceMappingURL=runtime.d.ts.map