import type { HumanInputQuestion, SessionEvent } from "@opengeni/sdk"; import type { OpenGeniText } from "./messages/runtime.js"; export type HumanInputDelegation = { /** The sub-session that asked. */ sessionId: string; requestId: string; }; /** The message the person sends their agent: short visible text, exact model context. */ export declare function humanInputDelegationMessage(t: OpenGeniText, input: { sessionId: string; sessionTitle: string; request: { id: string; questions: readonly HumanInputQuestion[]; }; }): { text: string; modelContext: string; }; /** * The question part of a hand-off message's visible text, without the * "Let the agent decide:" lead-in. Text in another form is returned as is. */ export declare function humanInputDelegationQuestionText(t: OpenGeniText, text: string): string; /** The request a user message handed to its agent, or null for any other message. */ export declare function parseHumanInputDelegation(modelContext: unknown): HumanInputDelegation | null; /** Request ids this chat's messages handed to its agent. */ export declare function delegatedHumanInputRequestIds(events: readonly SessionEvent[]): Set;