import type { AuditIssue, AuditResult } from "../agents/continuity.js"; import type { ChapterMeta } from "../models/chapter.js"; import type { LengthTelemetry } from "../models/length-governance.js"; export interface ChapterPersistenceUsage { readonly promptTokens: number; readonly completionTokens: number; readonly totalTokens: number; } export type ChapterPersistenceStatus = "ready-for-review" | "audit-failed" | "state-degraded"; export declare function persistChapterArtifacts(params: { readonly chapterNumber: number; readonly chapterTitle: string; readonly status: ChapterPersistenceStatus; readonly auditResult: AuditResult; readonly finalWordCount: number; readonly lengthWarnings: ReadonlyArray; readonly lengthTelemetry?: LengthTelemetry; readonly degradedIssues: ReadonlyArray; readonly tokenUsage?: ChapterPersistenceUsage; readonly loadChapterIndex: () => Promise>; readonly saveChapter: () => Promise; readonly saveTruthFiles: () => Promise; readonly saveChapterIndex: (index: ReadonlyArray) => Promise; readonly markBookActiveIfNeeded: () => Promise; readonly persistAuditDriftGuidance: (issues: ReadonlyArray) => Promise; readonly snapshotState: () => Promise; readonly syncCurrentStateFactHistory: () => Promise; readonly logSnapshotStage: () => void; readonly now?: () => string; }): Promise<{ readonly entry: ChapterMeta; }>; //# sourceMappingURL=chapter-persistence.d.ts.map