export interface AstMatch {
    file: string;
    start_line: number;
    end_line: number;
    text: string;
    captures: Record<string, string>;
}
export interface AstQueryResult {
    matches: AstMatch[];
    files_scanned: number;
    truncated: boolean;
}
/**
 * Search for AST patterns using tree-sitter query language.
 *
 * Examples:
 *   `(function_declaration name: (identifier) @name)` — find all function declarations
 *   `(try_statement handler: (catch_clause body: (statement_block) @body))` — find catch blocks
 *   `(call_expression function: (identifier) @fn (#eq? @fn "JSON.parse"))` — find JSON.parse calls
 *
 * Use `language` to specify which tree-sitter grammar to use. Files are
 * filtered by language-matching extensions from the indexed repo.
 */
export declare function astQuery(repo: string, queryString: string, options?: {
    language?: string | undefined;
    file_pattern?: string | undefined;
    max_matches?: number | undefined;
}): Promise<AstQueryResult>;
//# sourceMappingURL=ast-query-tools.d.ts.map