/** * Type Flow Analysis * Tracks where a type/interface is defined, imported, used as parameter, returned, etc. */ export interface TypeUsage { file: string; line: number; kind: 'definition' | 'import' | 'parameter' | 'return-type' | 'variable' | 'extends' | 'generic' | 'field'; context: string; } export interface TypeFlowResult { typeName: string; definition?: { file: string; line: number; code: string; }; usages: TypeUsage[]; flowSummary: { definedIn: string; importedBy: string[]; usedAsParam: string[]; usedAsReturn: string[]; extendedBy: string[]; totalUsages: number; }; } /** * Analyze where a type is defined, imported, and used across the codebase. * @param cwd - The working directory * @param typeName - Name of the type to trace * @param options - Analysis options * @param options.directory - Subdirectory to scan * @returns Type flow analysis with usages and summary */ export declare function analyzeTypeFlow(cwd: string, typeName: string, options?: { directory?: string; }): Promise; //# sourceMappingURL=type-flow.d.ts.map