import type { CallStep, FunctionInfo } from "./types.js"; export declare function extractFunctions(file: string, source: string): FunctionInfo[]; type CachedFunction = Omit; export type ExtractionCache = Map; export declare function extractCached(file: string, source: string, cache: ExtractionCache): FunctionInfo[]; export type FunctionIndex = Map; export declare function flattenCallKeys(steps: CallStep[]): string[]; /** * Every function recorded when the index was built (including duplicates that * lost the bare-key race). Indexes created as plain Maps fall back to values(). */ export declare function allFunctions(index: FunctionIndex): FunctionInfo[]; export declare function buildIndex(functions: FunctionInfo[]): FunctionIndex; export {};