import type { Context } from 'hono'; import type { AuthenticatedRouteDeps } from './deps.js'; export declare function submitSessionInput(c: Context, deps: AuthenticatedRouteDeps, conversationId: string, options?: { taskConversation?: boolean; }): Promise<(Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 404 | 400 | 409 | 410 | 401 | 403, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 503, "json">) | (Response & import("hono").TypedResponse<{ ok: true; payload: { conversationId: string; ok: true; effectiveDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; state: { control: { paused: boolean; version: number; phase: "idle" | "running" | "stopping"; reviewRequired: boolean; }; preparation?: { operationId: string; revision: number; state: "ready" | "preparing" | "preparation_failed"; lastError: string | null; executionMode?: "local_checkout" | "managed_worktree" | undefined; } | undefined; conversationId: string; revision: number; activeRunId?: string | undefined; activeInputId?: string | undefined; inputs: { id: string; conversationId: string; clientMessageId: string; expectedTranscriptId?: string | undefined; interruptRequested?: boolean | undefined; requestedDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; effectiveDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; status: import("../../../storage/sqlite/session-input-repository.js").SessionInputStatus; content: string; taskRunId?: string | undefined; kind: "message" | "connection_resume" | "clarification_resume" | "secret_resume"; payload?: { waitId: string; objectiveRevision: number; resolution: "continued" | "skipped"; } | { waitId: string; objectiveRevision: number; resolution: "answered" | "agent_decide" | "cancelled"; } | { waitId: string; objectiveRevision: number; connectionAction: "continue" | "cancel"; } | { waitId: string; objectiveRevision: number; connectionBarrier: true; } | undefined; attachments?: import("hono/dist/types/utils/types.js").JSONValue[] | undefined; contextRefs?: { refId?: string | undefined; kind: import("../../../agent/source-context/types.js").AgentSourceContext["kind"]; sourceId: string; version: string; title: string; tokenEstimate?: number | undefined; truncated?: boolean | undefined; url?: string | undefined; capturedAt?: number | undefined; documentId?: string | undefined; fileKind?: "file" | "directory" | undefined; }[] | undefined; contextSnapshots?: { refId?: string | undefined; kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "result" | "task" | "file" | "session" | "browser_tab" | "browser_page" | "app_context" | "user_assertion" | "device_context" | "workbook" | "chat_schedule"; sourceId: string; version: string; title: string; text: string; images?: { type: "image"; data: string; mimeType: string; }[] | undefined; tokenEstimate?: number | undefined; truncated?: boolean | undefined; url?: string | undefined; capturedAt?: number | undefined; documentId?: string | undefined; fileKind?: "file" | "directory" | undefined; interactionCapabilities?: { clarificationVersions: (1 | 2)[]; } | undefined; appContext?: { version: 1; clientInstanceId: string; tabId: string; sequence: number; surface: "electron" | "web" | "mobile"; resourceRefs: { kind: "project" | "note" | "task" | "local_app"; id: string; revision: string; }[]; capturedAt: number; selection?: { text: string; draft: boolean; } | undefined; } | undefined; appContextGrant?: { principal: { kind: "owner" | "device" | "trusted-proxy"; principalId: string; deviceId?: string | undefined; accessSessionId?: string | undefined; browserSessionId?: string | undefined; scopes: readonly import("@xopcai/gateway-contract").GatewayScope[]; }; authRevision: string; } | undefined; }[] | undefined; thinking?: string | undefined; origin: { type: "endpoint"; endpointId: string; } | { type: "channel"; channel: string; } | { type: "system"; source: "automation" | "cli" | "task" | "heartbeat" | "internal" | "task_update"; }; position: number; targetRunId?: string | undefined; runId?: string | undefined; version: number; error?: string | undefined; createdAtMs: number; updatedAtMs: number; }[]; }; }; }, 202, "json">)>; export declare function replaceLatestSessionTurn(c: Context, deps: AuthenticatedRouteDeps, conversationId: string, targetTurnId: string): Promise<(Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 400, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 403, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 409, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: "BAD_REQUEST" | "SESSION_BUSY" | "TARGET_NOT_FOUND" | "NOT_LATEST" | "CONTEXT_UNAVAILABLE" | "ROLLBACK_FAILED"; message: string; }; }, 404 | 400 | 409, "json">) | (Response & import("hono").TypedResponse<{ ok: true; payload: { conversationId: string; ok: true; effectiveDelivery: "next"; state: { control: { paused: boolean; version: number; phase: "idle" | "running" | "stopping"; reviewRequired: boolean; }; preparation?: { operationId: string; revision: number; state: "ready" | "preparing" | "preparation_failed"; lastError: string | null; executionMode?: "local_checkout" | "managed_worktree" | undefined; } | undefined; conversationId: string; revision: number; activeRunId?: string | undefined; activeInputId?: string | undefined; inputs: { id: string; conversationId: string; clientMessageId: string; expectedTranscriptId?: string | undefined; interruptRequested?: boolean | undefined; requestedDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; effectiveDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; status: import("../../../storage/sqlite/session-input-repository.js").SessionInputStatus; content: string; taskRunId?: string | undefined; kind: "message" | "connection_resume" | "clarification_resume" | "secret_resume"; payload?: { waitId: string; objectiveRevision: number; resolution: "continued" | "skipped"; } | { waitId: string; objectiveRevision: number; resolution: "answered" | "agent_decide" | "cancelled"; } | { waitId: string; objectiveRevision: number; connectionAction: "continue" | "cancel"; } | { waitId: string; objectiveRevision: number; connectionBarrier: true; } | undefined; attachments?: import("hono/dist/types/utils/types.js").JSONValue[] | undefined; contextRefs?: { refId?: string | undefined; kind: import("../../../agent/source-context/types.js").AgentSourceContext["kind"]; sourceId: string; version: string; title: string; tokenEstimate?: number | undefined; truncated?: boolean | undefined; url?: string | undefined; capturedAt?: number | undefined; documentId?: string | undefined; fileKind?: "file" | "directory" | undefined; }[] | undefined; contextSnapshots?: { refId?: string | undefined; kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "result" | "task" | "file" | "session" | "browser_tab" | "browser_page" | "app_context" | "user_assertion" | "device_context" | "workbook" | "chat_schedule"; sourceId: string; version: string; title: string; text: string; images?: { type: "image"; data: string; mimeType: string; }[] | undefined; tokenEstimate?: number | undefined; truncated?: boolean | undefined; url?: string | undefined; capturedAt?: number | undefined; documentId?: string | undefined; fileKind?: "file" | "directory" | undefined; interactionCapabilities?: { clarificationVersions: (1 | 2)[]; } | undefined; appContext?: { version: 1; clientInstanceId: string; tabId: string; sequence: number; surface: "electron" | "web" | "mobile"; resourceRefs: { kind: "project" | "note" | "task" | "local_app"; id: string; revision: string; }[]; capturedAt: number; selection?: { text: string; draft: boolean; } | undefined; } | undefined; appContextGrant?: { principal: { kind: "owner" | "device" | "trusted-proxy"; principalId: string; deviceId?: string | undefined; accessSessionId?: string | undefined; browserSessionId?: string | undefined; scopes: readonly import("@xopcai/gateway-contract").GatewayScope[]; }; authRevision: string; } | undefined; }[] | undefined; thinking?: string | undefined; origin: { type: "endpoint"; endpointId: string; } | { type: "channel"; channel: string; } | { type: "system"; source: "automation" | "cli" | "task" | "heartbeat" | "internal" | "task_update"; }; position: number; targetRunId?: string | undefined; runId?: string | undefined; version: number; error?: string | undefined; createdAtMs: number; updatedAtMs: number; }[]; }; }; }, 202, "json">)>;