/** * Python source symbol extraction using the `ast` module. * * Runs the extraction program from `toolchain-scripts.ts` under the resolved * interpreter, with the source on stdin, and decodes its JSON. * * Extracts: class, function, method, property, const, var, type */ import type { FileSymbols, SymbolLang } from './schema.js'; /** * Prefer Python's `ast` when a runtime is available. When Python is missing * or the spawn fails, fall back to the generic regex extractor so `.py` files * still enter the index instead of being silently empty. * * Syntax errors from a working Python still return zero symbols (ast cannot * recover) — that is intentional correctness, not a gap in coverage. */ export declare function parseSymbols(opts: { file: string; content: string; lang: SymbolLang; }): Promise; export { detectLang } from './languages.js'; /** * The resolved Python binary (or null when no runtime is available). * Shared with the batch parser so both paths run the same interpreter. */ export declare function resolvePythonBinary(): Promise; //# sourceMappingURL=py-parser.d.ts.map