export type TreeSitterModule = typeof import('web-tree-sitter');
export type TreeSitterLanguage = import('web-tree-sitter').Language;
export type TreeSitterQuery = import('web-tree-sitter').Query;
export type TreeSitterNode = import('web-tree-sitter').Node;
export type TreeSitterTree = import('web-tree-sitter').Tree;
export interface TreeSitterErrorNode {
    type: string;
    text: string;
    line: number;
    column: number;
}
export interface TreeSitterTagCapture {
    name: string;
    node: TreeSitterNode;
}
export type TreeSitterParser = import('web-tree-sitter').Parser;
export declare function resolveTreeSitterAsset(grammar: string, fileName: string): string | null;
export declare function loadTreeSitterLanguage(grammar: string): Promise<TreeSitterLanguage | null>;
export declare function parseTreeSitterContent(grammar: string, content: string): Promise<TreeSitterTree | null>;
export declare function collectTreeSitterTagCaptures(grammar: string, root: TreeSitterNode): Promise<TreeSitterTagCapture[] | null>;
export declare function collectTreeSitterErrorNodes(root: TreeSitterNode): TreeSitterErrorNode[];
