/** * Signature shape classification for the Capability Index. * * Classifies TypeScript function signatures into semantic categories * using regex pattern matching on the signature strings already * available in registry.json (extracted by extractSignature.ts). * * Also provides member extraction for interface/type overlap detection. */ export type SignatureShape = 'predicate' | 'collection-transform' | 'factory-text' | 'factory-object' | 'filesystem-scan' | 'void-effect' | 'async-fetch' | 'callback-pattern' | 'mapper' | 'unknown'; /** * Classify a function signature string into a semantic shape. * * Order matters — patterns are checked from most specific to least. * First match wins. * * @param signature - The signature string from registry (e.g. "(items: Item[]) => Item[]") * @returns The classified shape */ export declare function classifySignature(signature: string | undefined): SignatureShape; /** * Extract member names from an interface/type signature string. * * Input: "{ name: string; age: number; email: string ... +2 more }" * Output: ["name", "age", "email"] * * Works with the truncated signature format produced by extractSignature.ts. */ export declare function extractMembers(signature: string): string[];