import type { HumanInputQuestion, SessionEvent, SessionHumanInputRequest } from "@opengeni/sdk"; /** Minimal actionable request shape available from the durable event log. */ export type PendingHumanInputRequest = { id: string; turnId: string | null; questions: HumanInputQuestion[]; allowSkip: boolean; expiresAt: string | null; /** * `secret_use_approval` marks a host-owned approval card. It belongs to the * blocked use, not to the turn that hit it, so it stays actionable after * that turn ends. */ origin?: "tool_call" | "secret_use_approval" | undefined; }; /** A pending row stops being actionable at its durable deadline, even before refresh. */ export declare function isActionableHumanInputRequest(request: Pick, nowMs?: number): boolean; /** Parse one generic `session.humanInput.requested` event defensively. */ export declare function humanInputRequestFromEvent(event: Pick): PendingHumanInputRequest | null; /** * Fold a durable event log into the structured requests that are actionable * now. Responses remove one request; a terminal owning turn clears any * unresolved requests that died with it, except host-owned secret-use approval * cards, which outlive their turn. Replaying history cannot resurrect a * previously answered card. */ export declare function projectPendingHumanInputRequests(events: SessionEvent[]): PendingHumanInputRequest[];