import type { Context } from 'hono'; import type { AuthenticatedRouteDeps } from './deps.js'; export declare function submitSessionInput(c: Context, deps: AuthenticatedRouteDeps, sessionKey: 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: "SESSION_CHANGED" | "BAD_REQUEST" | "QUEUE_FULL" | "CONTEXT_UNAVAILABLE"; message: string; }; }, 400 | 409, "json">) | (Response & import("hono").TypedResponse<{ ok: true; payload: { sessionKey: string; ok: true; effectiveDelivery: import("../../../storage/sqlite/session-input-repository.js").SessionInputDelivery; state: { sessionKey: string; revision: number; activeRunId?: string; activeInputId?: string; inputs: { id: string; sessionKey: string; clientMessageId: string; expectedSessionId?: 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?: { kind: import("../../../agent/source-context/types.js").AgentSourceContext["kind"]; sourceId: string; version: string; title: string; tokenEstimate?: number; truncated?: boolean; }[]; contextSnapshots?: { kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"]; sourceId: string; version: string; title: string; text: string; images?: { type: "image"; data: string; mimeType: string; }[]; tokenEstimate?: number; truncated?: boolean; }[]; thinking?: string; origin: { type: "endpoint"; endpointId: string; } | { type: "channel"; channel: string; } | { type: "system"; source: "automation" | "cli" | "workflow" | "heartbeat" | "internal"; }; position: number; targetRunId?: string; runId?: string; version: number; error?: string; createdAtMs: number; updatedAtMs: number; }[]; }; }; }, 202, "json">)>; export declare function replaceLatestSessionTurn(c: Context, deps: AuthenticatedRouteDeps, sessionKey: 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: "TARGET_NOT_FOUND" | "NOT_LATEST" | "SESSION_BUSY" | "BAD_REQUEST" | "CONTEXT_UNAVAILABLE"; message: string; }; }, 400 | 404 | 409, "json">) | (Response & import("hono").TypedResponse<{ ok: true; payload: { sessionKey: string; ok: true; effectiveDelivery: "next"; state: { sessionKey: string; revision: number; activeRunId?: string; activeInputId?: string; inputs: { id: string; sessionKey: string; clientMessageId: string; expectedSessionId?: 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?: { kind: import("../../../agent/source-context/types.js").AgentSourceContext["kind"]; sourceId: string; version: string; title: string; tokenEstimate?: number; truncated?: boolean; }[]; contextSnapshots?: { kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"]; sourceId: string; version: string; title: string; text: string; images?: { type: "image"; data: string; mimeType: string; }[]; tokenEstimate?: number; truncated?: boolean; }[]; thinking?: string; origin: { type: "endpoint"; endpointId: string; } | { type: "channel"; channel: string; } | { type: "system"; source: "automation" | "cli" | "workflow" | "heartbeat" | "internal"; }; position: number; targetRunId?: string; runId?: string; version: number; error?: string; createdAtMs: number; updatedAtMs: number; }[]; }; }; }, 202, "json">)>;