import { z } from "zod"; import { type AutomationMode } from "./modes.js"; import { type InteractionEvent } from "./events.js"; export declare const PendingDecisionSchema: z.ZodObject<{ kind: z.ZodString; bookId: z.ZodString; chapterNumber: z.ZodOptional; summary: z.ZodString; }, "strip", z.ZodTypeAny, { bookId: string; kind: string; summary: string; chapterNumber?: number | undefined; }, { bookId: string; kind: string; summary: string; chapterNumber?: number | undefined; }>; export type PendingDecision = z.infer; export declare const InteractionMessageSchema: z.ZodObject<{ role: z.ZodEnum<["user", "assistant", "system"]>; content: z.ZodString; timestamp: z.ZodNumber; }, "strip", z.ZodTypeAny, { content: string; role: "system" | "user" | "assistant"; timestamp: number; }, { content: string; role: "system" | "user" | "assistant"; timestamp: number; }>; export type InteractionMessage = z.infer; export declare const BookCreationDraftSchema: z.ZodObject<{ concept: z.ZodString; title: z.ZodOptional; genre: z.ZodOptional; platform: z.ZodOptional; language: z.ZodOptional>; targetChapters: z.ZodOptional; chapterWordCount: z.ZodOptional; blurb: z.ZodOptional; worldPremise: z.ZodOptional; settingNotes: z.ZodOptional; protagonist: z.ZodOptional; supportingCast: z.ZodOptional; conflictCore: z.ZodOptional; volumeOutline: z.ZodOptional; constraints: z.ZodOptional; authorIntent: z.ZodOptional; currentFocus: z.ZodOptional; nextQuestion: z.ZodOptional; missingFields: z.ZodDefault>; readyToCreate: z.ZodDefault; }, "strip", z.ZodTypeAny, { concept: string; missingFields: string[]; readyToCreate: boolean; title?: string | undefined; platform?: string | undefined; genre?: string | undefined; targetChapters?: number | undefined; chapterWordCount?: number | undefined; language?: "zh" | "en" | undefined; protagonist?: string | undefined; authorIntent?: string | undefined; currentFocus?: string | undefined; volumeOutline?: string | undefined; blurb?: string | undefined; worldPremise?: string | undefined; settingNotes?: string | undefined; supportingCast?: string | undefined; conflictCore?: string | undefined; constraints?: string | undefined; nextQuestion?: string | undefined; }, { concept: string; title?: string | undefined; platform?: string | undefined; genre?: string | undefined; targetChapters?: number | undefined; chapterWordCount?: number | undefined; language?: "zh" | "en" | undefined; protagonist?: string | undefined; authorIntent?: string | undefined; currentFocus?: string | undefined; volumeOutline?: string | undefined; blurb?: string | undefined; worldPremise?: string | undefined; settingNotes?: string | undefined; supportingCast?: string | undefined; conflictCore?: string | undefined; constraints?: string | undefined; nextQuestion?: string | undefined; missingFields?: string[] | undefined; readyToCreate?: boolean | undefined; }>; export type BookCreationDraft = z.infer; export declare const InteractionSessionSchema: z.ZodObject<{ sessionId: z.ZodString; projectRoot: z.ZodString; activeBookId: z.ZodOptional; activeChapterNumber: z.ZodOptional; creationDraft: z.ZodOptional; genre: z.ZodOptional; platform: z.ZodOptional; language: z.ZodOptional>; targetChapters: z.ZodOptional; chapterWordCount: z.ZodOptional; blurb: z.ZodOptional; worldPremise: z.ZodOptional; settingNotes: z.ZodOptional; protagonist: z.ZodOptional; supportingCast: z.ZodOptional; conflictCore: z.ZodOptional; volumeOutline: z.ZodOptional; constraints: z.ZodOptional; authorIntent: z.ZodOptional; currentFocus: z.ZodOptional; nextQuestion: z.ZodOptional; missingFields: z.ZodDefault>; readyToCreate: z.ZodDefault; }, "strip", z.ZodTypeAny, { concept: string; missingFields: string[]; readyToCreate: boolean; title?: string | undefined; platform?: string | undefined; genre?: string | undefined; targetChapters?: number | undefined; chapterWordCount?: number | undefined; language?: "zh" | "en" | undefined; protagonist?: string | undefined; authorIntent?: string | undefined; currentFocus?: string | undefined; volumeOutline?: string | undefined; blurb?: string | undefined; worldPremise?: string | undefined; settingNotes?: string | undefined; supportingCast?: string | undefined; conflictCore?: string | undefined; constraints?: string | undefined; nextQuestion?: string | undefined; }, { concept: string; title?: string | undefined; platform?: string | undefined; genre?: string | undefined; targetChapters?: number | undefined; chapterWordCount?: number | undefined; language?: "zh" | "en" | undefined; protagonist?: string | undefined; authorIntent?: string | undefined; currentFocus?: string | undefined; volumeOutline?: string | undefined; blurb?: string | undefined; worldPremise?: string | undefined; settingNotes?: string | undefined; supportingCast?: string | undefined; conflictCore?: string | undefined; constraints?: string | undefined; nextQuestion?: string | undefined; missingFields?: string[] | undefined; readyToCreate?: boolean | undefined; }>>; automationMode: z.ZodDefault>; messages: z.ZodDefault; content: z.ZodString; timestamp: z.ZodNumber; }, "strip", z.ZodTypeAny, { content: string; role: "system" | "user" | "assistant"; timestamp: number; }, { content: string; role: "system" | "user" | "assistant"; timestamp: number; }>, "many">>; events: z.ZodDefault; bookId: z.ZodOptional; chapterNumber: z.ZodOptional; detail: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; kind: string; timestamp: number; detail?: string | undefined; bookId?: string | undefined; chapterNumber?: number | undefined; }, { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; kind: string; timestamp: number; detail?: string | undefined; bookId?: string | undefined; chapterNumber?: number | undefined; }>, "many">>; pendingDecision: z.ZodOptional; summary: z.ZodString; }, "strip", z.ZodTypeAny, { bookId: string; kind: string; summary: string; chapterNumber?: number | undefined; }, { bookId: string; kind: string; summary: string; chapterNumber?: number | undefined; }>>; currentExecution: z.ZodOptional; bookId: z.ZodOptional; chapterNumber: z.ZodOptional; stageLabel: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; bookId?: string | undefined; chapterNumber?: number | undefined; stageLabel?: string | undefined; }, { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; bookId?: string | undefined; chapterNumber?: number | undefined; stageLabel?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { events: { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; kind: string; timestamp: number; detail?: string | undefined; bookId?: string | undefined; chapterNumber?: number | undefined; }[]; messages: { content: string; role: "system" | "user" | "assistant"; timestamp: number; }[]; sessionId: string; projectRoot: string; automationMode: "auto" | "semi" | "manual"; activeBookId?: string | undefined; activeChapterNumber?: number | undefined; creationDraft?: { concept: string; missingFields: string[]; readyToCreate: boolean; title?: string | undefined; platform?: string | undefined; genre?: string | undefined; targetChapters?: number | undefined; chapterWordCount?: number | undefined; language?: "zh" | "en" | undefined; protagonist?: string | undefined; authorIntent?: string | undefined; currentFocus?: string | undefined; volumeOutline?: string | undefined; blurb?: string | undefined; worldPremise?: string | undefined; settingNotes?: string | undefined; supportingCast?: string | undefined; conflictCore?: string | undefined; constraints?: string | undefined; nextQuestion?: string | undefined; } | undefined; pendingDecision?: { bookId: string; kind: string; summary: string; chapterNumber?: number | undefined; } | undefined; currentExecution?: { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; bookId?: string | undefined; chapterNumber?: number | undefined; stageLabel?: string | undefined; } | undefined; }, { sessionId: string; projectRoot: string; events?: { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; kind: string; timestamp: number; detail?: string | undefined; bookId?: string | undefined; chapterNumber?: number | undefined; }[] | undefined; messages?: { content: string; role: "system" | "user" | "assistant"; timestamp: number; }[] | undefined; activeBookId?: string | undefined; activeChapterNumber?: number | undefined; creationDraft?: { concept: string; title?: string | undefined; platform?: string | undefined; genre?: string | undefined; targetChapters?: number | undefined; chapterWordCount?: number | undefined; language?: "zh" | "en" | undefined; protagonist?: string | undefined; authorIntent?: string | undefined; currentFocus?: string | undefined; volumeOutline?: string | undefined; blurb?: string | undefined; worldPremise?: string | undefined; settingNotes?: string | undefined; supportingCast?: string | undefined; conflictCore?: string | undefined; constraints?: string | undefined; nextQuestion?: string | undefined; missingFields?: string[] | undefined; readyToCreate?: boolean | undefined; } | undefined; automationMode?: "auto" | "semi" | "manual" | undefined; pendingDecision?: { bookId: string; kind: string; summary: string; chapterNumber?: number | undefined; } | undefined; currentExecution?: { status: "completed" | "planning" | "idle" | "composing" | "writing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed"; bookId?: string | undefined; chapterNumber?: number | undefined; stageLabel?: string | undefined; } | undefined; }>; export type InteractionSession = z.infer; export declare function bindActiveBook(session: InteractionSession, bookId: string, chapterNumber?: number): InteractionSession; export declare function clearPendingDecision(session: InteractionSession): InteractionSession; export declare function updateCreationDraft(session: InteractionSession, draft: BookCreationDraft): InteractionSession; export declare function clearCreationDraft(session: InteractionSession): InteractionSession; export declare function updateAutomationMode(session: InteractionSession, automationMode: AutomationMode): InteractionSession; export declare function appendInteractionMessage(session: InteractionSession, message: InteractionMessage): InteractionSession; export declare function appendInteractionEvent(session: InteractionSession, event: InteractionEvent): InteractionSession; //# sourceMappingURL=session.d.ts.map