export interface SystemConfig {
  ollamaUrl: string;
  model: string;
  temperature: number;
  topP: number;
  maxTokens: number;
}

// 章节规划信息
export interface ChapterOutline {
  chapterNumber: number;
  title: string;
  outline: string;
  moduleNumber?: number; // 所属模块
  estimatedWords?: number; // 预计字数
  status?: 'pending' | 'completed'; // 章节状态：待生成或已完成
}

export interface Novel {
  id: string;
  title: string;
  genre: string;
  outline: string;
  targetWordCount?: number;
  createdAt: string;
  updatedAt: string;
  // AI生成的详细设定
  generatedSettings?: {
    storyOutline: string;
    plotStructure: string;
    characters: string;
    targetWordCount: number;
    chapterCount: number;
    moduleCount: number; // 模块数量
    chapters: ChapterOutline[]; // 详细章节规划
    chapterOutline: string; // 原始章节大纲文本
  };
  // 本地文件路径
  settingFilePath?: string;
}

export interface Chapter {
  id: string;
  novelId: string;
  chapterNumber: number;
  title: string;
  content: string;
  outline: string;
  createdAt: string;
  updatedAt: string;
  estimatedWords?: number;
  moduleNumber?: number;
}

export interface NovelGenerationParams {
  title: string;
  genre?: string;
  customRequirements?: string;
  targetWordCount?: number; // 目标字数
  preferredModuleCount?: number; // 偏好的模块数量
}