import { type InteractionSession } from "@actalk/inkos-core";
export declare function processTuiAgentInput(params: {
    readonly projectRoot: string;
    readonly input: string;
    readonly session: InteractionSession;
    readonly activeBookId?: string;
    readonly onTextDelta?: (text: string) => void;
}): Promise<{
    responseText: string;
    session: {
        events: {
            status: "completed" | "writing" | "planning" | "idle" | "composing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed";
            kind: string;
            timestamp: number;
            bookId?: string | undefined;
            chapterNumber?: number | undefined;
            detail?: string | undefined;
        }[];
        messages: {
            role: "system" | "user" | "assistant";
            content: string;
            timestamp: number;
            thinking?: string | undefined;
            toolExecutions?: {
                status: "completed" | "error" | "running" | "processing";
                id: string;
                tool: string;
                label: string;
                startedAt: number;
                error?: string | undefined;
                agent?: string | undefined;
                args?: Record<string, unknown> | undefined;
                result?: string | undefined;
                details?: unknown;
                stages?: {
                    status: "active" | "completed" | "pending";
                    label: string;
                }[] | undefined;
                completedAt?: number | undefined;
            }[] | undefined;
        }[];
        sessionId: string;
        projectRoot: string;
        draftRounds: {
            timestamp: number;
            summary: string;
            roundId: number;
            userMessage: string;
            assistantRaw: string;
            fieldsUpdated: 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" | "writing" | "planning" | "idle" | "composing" | "assessing" | "repairing" | "persisting" | "waiting_human" | "blocked" | "failed";
            bookId?: string | undefined;
            chapterNumber?: number | undefined;
            stageLabel?: string | undefined;
        } | undefined;
    };
}>;
//# sourceMappingURL=agent-input.d.ts.map