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; }; }, 401, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 503, "json">) | (Response & import("hono").TypedResponse<{ ok: false; error: { code: string; message: string; }; }, 400 | 409 | 403, "json">) | (Response & import("hono").TypedResponse<{ ok: true; payload: { conversationId: string; ok: true; effectiveDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; state: { preparation?: { operationId: string; revision: number; state: "ready" | "preparing" | "preparation_failed"; lastError?: string; }; conversationId: string; revision: number; activeRunId?: string; activeInputId?: string; inputs: { id: string; conversationId: string; clientMessageId: string; expectedTranscriptId?: string; 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; kind: "message" | "connection_resume" | "clarification_resume"; payload?: { waitId: string; objectiveRevision: number; resolution: "continued" | "skipped"; } | { waitId: string; objectiveRevision: number; resolution: "answered" | "agent_decide" | "cancelled"; }; attachments?: import("hono/dist/types/utils/types.js").JSONValue[]; contextRefs?: { refId?: string; kind: import("../../../agent/source-context/types.js").AgentSourceContext["kind"]; sourceId: string; version: string; title: string; tokenEstimate?: number; truncated?: boolean; url?: string; capturedAt?: number; documentId?: string; fileKind?: "file" | "directory"; }[]; contextSnapshots?: { refId?: string; kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "task" | "file" | "session" | "mcp_resource" | "browser_tab" | "browser_page" | "app_context" | "user_assertion"; sourceId: string; version: string; title: string; text: string; images?: { type: "image"; data: string; mimeType: string; }[]; tokenEstimate?: number; truncated?: boolean; url?: string; capturedAt?: number; documentId?: string; fileKind?: "file" | "directory"; appContext?: { version: 1; clientInstanceId: string; tabId: string; sequence: number; surface: "electron" | "web" | "mobile"; resourceRefs: { kind: "project" | "note" | "task" | "scene" | "local_app"; id: string; revision: string; }[]; capturedAt: number; selection?: { text: string; draft: boolean; }; }; appContextGrant?: { principal: { kind: "owner" | "device" | "trusted-proxy"; principalId: string; deviceId?: string; accessSessionId?: string; browserSessionId?: string; scopes: readonly import("@xopcai/gateway-contract").GatewayScope[]; }; authRevision: string; }; }[]; thinking?: string; origin: { type: "endpoint"; endpointId: string; } | { type: "channel"; channel: string; } | { type: "system"; source: "automation" | "cli" | "workflow" | "heartbeat" | "internal" | "task_update"; }; position: number; targetRunId?: string; runId?: string; version: number; error?: string; 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; }; }, 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"; message: string; }; }, 404 | 400 | 409, "json">) | (Response & import("hono").TypedResponse<{ ok: true; payload: { conversationId: string; ok: true; effectiveDelivery: "next"; state: { preparation?: { operationId: string; revision: number; state: "ready" | "preparing" | "preparation_failed"; lastError?: string; }; conversationId: string; revision: number; activeRunId?: string; activeInputId?: string; inputs: { id: string; conversationId: string; clientMessageId: string; expectedTranscriptId?: string; 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; kind: "message" | "connection_resume" | "clarification_resume"; payload?: { waitId: string; objectiveRevision: number; resolution: "continued" | "skipped"; } | { waitId: string; objectiveRevision: number; resolution: "answered" | "agent_decide" | "cancelled"; }; attachments?: import("hono/dist/types/utils/types.js").JSONValue[]; contextRefs?: { refId?: string; kind: import("../../../agent/source-context/types.js").AgentSourceContext["kind"]; sourceId: string; version: string; title: string; tokenEstimate?: number; truncated?: boolean; url?: string; capturedAt?: number; documentId?: string; fileKind?: "file" | "directory"; }[]; contextSnapshots?: { refId?: string; kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "task" | "file" | "session" | "mcp_resource" | "browser_tab" | "browser_page" | "app_context" | "user_assertion"; sourceId: string; version: string; title: string; text: string; images?: { type: "image"; data: string; mimeType: string; }[]; tokenEstimate?: number; truncated?: boolean; url?: string; capturedAt?: number; documentId?: string; fileKind?: "file" | "directory"; appContext?: { version: 1; clientInstanceId: string; tabId: string; sequence: number; surface: "electron" | "web" | "mobile"; resourceRefs: { kind: "project" | "note" | "task" | "scene" | "local_app"; id: string; revision: string; }[]; capturedAt: number; selection?: { text: string; draft: boolean; }; }; appContextGrant?: { principal: { kind: "owner" | "device" | "trusted-proxy"; principalId: string; deviceId?: string; accessSessionId?: string; browserSessionId?: string; scopes: readonly import("@xopcai/gateway-contract").GatewayScope[]; }; authRevision: string; }; }[]; thinking?: string; origin: { type: "endpoint"; endpointId: string; } | { type: "channel"; channel: string; } | { type: "system"; source: "automation" | "cli" | "workflow" | "heartbeat" | "internal" | "task_update"; }; position: number; targetRunId?: string; runId?: string; version: number; error?: string; createdAtMs: number; updatedAtMs: number; }[]; }; }; }, 202, "json">)>;