/** * 需求分析文档分章节存储 * 参考 tech-spec-storage 的设计,支持分章节存储和最终合并渲染 */ /** * 需求分析项目 */ export interface RequirementProject { id: number; uuid: string; name: string; domain: string; projectPath: string; docType: "API" | "HTML" | "BOTH"; pageType?: "pc" | "mobile" | "responsive"; status: "analyzing" | "generating" | "completed" | "failed"; createdAt: Date; updatedAt: Date; completedAt?: Date; } /** * 章节类型 */ export type ReqChapterType = "background" | "design" | "data_model" | "api_design" | "sequence" | "status" | "pseudocode" | "layout" | "style" | "interaction" | "component"; /** * 章节内容 */ export interface ReqChapter { id: number; uuid: string; projectUuid: string; type: ReqChapterType; title: string; order: number; content: string; status: "pending" | "completed" | "failed"; error?: string; createdAt: Date; updatedAt: Date; } export declare const requirementDbOperations: { createProject: (data: { uuid: string; name: string; domain: string; projectPath: string; docType: "API" | "HTML" | "BOTH"; pageType?: "pc" | "mobile" | "responsive"; }) => Promise; getProject: (uuid: string) => Promise; getAllProjects: () => Promise; updateProject: (uuid: string, data: Partial) => Promise; createChapter: (data: { uuid: string; projectUuid: string; type: ReqChapterType; title: string; order: number; content: string; }) => Promise; getChapters: (projectUuid: string) => Promise; getChapterByType: (projectUuid: string, type: ReqChapterType) => Promise; updateChapter: (uuid: string, data: Partial) => Promise; appendToChapter: (projectUuid: string, type: ReqChapterType, content: string) => Promise; mergeApiDocument: (projectUuid: string) => Promise; mergeHtmlDocument: (projectUuid: string) => Promise; cleanupProject: (projectUuid: string) => Promise; }; //# sourceMappingURL=requirement-storage.d.ts.map