/**
 * Tree-sitter AST parser — query execution engine for code analysis.
 *
 * Resolves grammar paths from node_modules, writes S-expression query
 * patterns to temp files, executes tree-sitter CLI, and parses output
 * into structured CodeSymbol objects.
 *
 * @task T149
 */
import type { BatchParseResult, ParseResult } from '@cleocode/contracts';
/** Check if tree-sitter CLI is available and executable. Cached after first call. */
export declare function isTreeSitterAvailable(): boolean;
/**
 * Parse a single file and extract code symbols.
 *
 * @param filePath - Absolute or relative path to source file
 * @param projectRoot - Project root for relative path computation
 * @returns Parse result with symbols and any errors
 */
export declare function parseFile(filePath: string, projectRoot?: string): ParseResult;
/**
 * Batch-parse multiple files, grouping by language for efficiency.
 *
 * Files with the same language share a single query pattern file
 * but each file is parsed individually (tree-sitter CLI limitation).
 *
 * @param filePaths - Array of file paths to parse
 * @param projectRoot - Project root for relative path computation
 * @returns Aggregated results with per-file breakdowns
 */
export declare function batchParse(filePaths: string[], projectRoot?: string): BatchParseResult;
//# sourceMappingURL=parser.d.ts.map