/** * Function introspection for LLM tool wrapping. * * Runs at runtime against compiled JavaScript — TypeScript syntax * (type annotations, `?` optional, generics) has already been stripped * before `fn.toString()` returns. We only need two things: * * 1. Param names (for auto-generated JSON Schema property keys). * 2. Whether each param has a default value — the only form of * optionality that survives compilation. * * Acorn does the actual parsing; this module just picks a wrapping * that makes the source a valid expression and walks the resulting * param AST. */ export interface ParsedFunction { name: string; params: Array<{ name: string; optional: boolean; }>; } export declare function parseFunction(fn: Function): ParsedFunction; //# sourceMappingURL=parser.d.ts.map