export interface ApiEndpoint { path: string; method: string; handler: string; filePath: string; line: number; parameters?: string[]; responseType?: string; decorators?: string[]; description?: string; } export interface EntityField { name: string; type: string; nullable: boolean; defaultValue?: string; isPrimaryKey?: boolean; isForeignKey?: boolean; description?: string; } export interface EntityDefinition { name: string; tableName?: string; filePath: string; line: number; fields: EntityField[]; relations?: { target: string; type: string; field: string; }[]; description?: string; } export interface RouteConfig { path: string; component?: string; layout?: string; lazy?: boolean; guards?: string[]; children?: RouteConfig[]; filePath: string; line: number; } export interface ComponentInfo { name: string; filePath: string; line: number; props?: string[]; slots?: string[]; emits?: string[]; dependencies?: string[]; description?: string; } export interface DependencyEdge { from: string; to: string; type: 'import' | 'inherit' | 'implement'; } export interface StructuredData { generatedAt: string; projectRoot: string; endpoints: { [platform: string]: { apis: ApiEndpoint[]; entities: EntityDefinition[]; routes: RouteConfig[]; components: ComponentInfo[]; }; }; dependencies: DependencyEdge[]; stats: { totalApis: number; totalEntities: number; totalRoutes: number; totalComponents: number; totalFiles: number; }; } /** * 扫描项目源码,提取结构化数据 * @param projectRoot 项目根目录 * @param sourcePaths 源码路径列表(从 CONSTITUTION.md 读取) */ export declare function extractStructuredData(projectRoot: string, sourcePaths: string[]): Promise; /** * 加载已提取的结构化数据 */ export declare function loadStructuredData(): Promise; //# sourceMappingURL=structured-extractor.d.ts.map