export type ReferenceKind = | "import" | "re-export" | "call" | "construct" | "read" | "write" | "type" | "jsx" | "unknown"; export interface SourceLocation { filePath: string; line: number; column: number; } export interface ReferenceRecord { kind: ReferenceKind; location: SourceLocation; isInternal: boolean; text?: string; } export interface ExportedMemberSummary { name: string; kind: "method" | "property" | "accessor" | "type-member" | "unknown"; references: ReferenceRecord[]; externalReferenceCount?: number; internalReferenceCount?: number; } export interface ExportedSymbolSummary { exportName: string; localName?: string; kind: | "function" | "class" | "method" | "property" | "const" | "let" | "var" | "type" | "interface" | "enum" | "namespace" | "default" | "re-export" | "unknown"; isDefault: boolean; isTypeOnly: boolean; declarationLocation?: SourceLocation; references: ReferenceRecord[]; members: ExportedMemberSummary[]; externalReferenceCount?: number; internalReferenceCount?: number; } export interface AnalysisReport { targetFile: string; projectFile: string; exportedSymbols: ExportedSymbolSummary[]; diagnostics: string[]; }