/** * AST Parser Service * * Wraps tree-sitter to parse source files and extract symbols, imports, * and structural information. */ import type { ASTLanguage, ImportInfo, IndexedSymbol } from './ast.types.js'; /** Approximate number of characters per token for rough estimation */ export declare const CHARS_PER_TOKEN = 4; /** * Result of parsing a single file */ export interface ParseResult { contentHash: string; imports: ImportInfo[]; language: ASTLanguage; symbols: IndexedSymbol[]; } /** * Estimate tokens from text (rough: ~4 chars per token) */ export declare function estimateTokens(text: string): number; /** * Parse a source file and extract symbols and imports */ export declare function parseFile(filePath: string, content: string): Promise; export declare function computeContentHash(content: string): string; //# sourceMappingURL=ast-parser.service.d.ts.map