UNPKG

novel-writer-cn

Version:

AI 驱动的中文小说创作工具 - 基于结构化工作流的智能写作助手

109 lines 2.39 kB
/** * 混合方法支持 * 允许组合使用多种写作方法 */ interface HybridConfig { primary: { method: string; scope: 'main-plot'; }; secondary?: { method: string; scope: 'sub-plot' | 'character-arc' | 'chapter-structure'; }; micro?: { method: string; scope: 'scene' | 'chapter'; }; } interface HybridStructure { config: HybridConfig; mapping: StructureMapping; guidelines: string[]; examples: string[]; } interface StructureMapping { mainPlot: PlotStructure; subPlots?: PlotStructure[]; characterArcs?: CharacterArcStructure[]; chapterTemplates?: ChapterTemplate[]; } interface PlotStructure { method: string; elements: StructureElement[]; } interface StructureElement { name: string; chapters: number[]; description: string; } interface CharacterArcStructure { character: string; method: string; arc: StructureElement[]; } interface ChapterTemplate { chapterRange?: number[]; method: string; template: string; } export declare class HybridMethodManager { /** * 预定义的有效混合组合 */ private validCombinations; /** * 创建混合结构 */ createHybridStructure(config: HybridConfig, storyDetails: any): HybridStructure; /** * 验证组合有效性 */ private validateCombination; /** * 创建主线结构 */ private createMainPlot; /** * 创建支线结构 */ private createSubPlots; /** * 创建角色弧线结构 */ private createCharacterArcs; /** * 创建章节模板 */ private createChapterTemplates; /** * 适配结构到支线 */ private adaptStructureToSubplot; /** * 创建角色弧线元素 */ private createCharacterArcElements; /** * 生成指导原则 */ private generateGuidelines; /** * 生成示例 */ private generateExamples; /** * 推荐混合方案 */ recommendHybrid(genre: string, length: number, complexity: string): HybridConfig | null; /** * 生成混合方法文档 */ generateHybridDocument(structure: HybridStructure): string; /** * 获取方法中文名 */ private getMethodName; } export {}; //# sourceMappingURL=hybrid-method.d.ts.map