import type { ExtractedTool } from "../formats.js"; /** * Static tRPC extraction (04 §1, additive within vendo/tools@3). * * Routers are parsed with the TypeScript compiler API — no code from the host * is executed. The compiler itself is resolved from the HOST's node_modules * (every tRPC app is a TypeScript app); when it cannot be resolved the * extractor fails closed to zero tools with a warning. * * Zod input schemas are statically interpreted into JSON Schema for common * patterns; unrecognized validators fail closed to a permissive schema with a * note on the tool. */ export interface TrpcExtractResult { tools: ExtractedTool[]; warnings: string[]; } export declare function detectTrpc(root: string): Promise; export declare function extractTrpc(root: string): Promise; /** The mounts trpc tools were extracted from — route-scan tools under these * paths are shadowed (the catch-all HTTP route is not a real API surface). */ export declare function trpcMounts(tools: readonly ExtractedTool[]): string[];