import { type ToolDisplayMetadata, type SessionEvent } from "@opengeni/sdk"; import { type McpElicitationApprovalRequest as McpElicitation } from "@opengeni/contracts/mcp-elicitation-model"; export type PendingApproval = { /** The id to send back via `user.approvalDecision` (`approvalId`). */ id: string; /** Tool/function name awaiting the decision. */ name: string; display?: ToolDisplayMetadata; arguments?: unknown; /** * The tool's MCP server stopped mid-call to ask the person these questions. * Approving answers them; declining ends the call. */ elicitation?: McpElicitation; /** The raw approval entry from the `session.requiresAction` payload. */ raw?: unknown; }; /** The approvals carried by one `session.requiresAction` payload. */ export declare function approvalsFromRequiresAction(payload: unknown): PendingApproval[]; /** The approvals still awaiting a decision after replaying `events` in order. */ export declare function projectPendingApprovals(events: SessionEvent[]): PendingApproval[]; /** * Whether a session in `status` takes decisions for its pending approvals. * Deciding one approval resumes the turn, and the pause's other approvals stay * decidable while it resumes: their cards stay up instead of vanishing until * the turn pauses again. Only a session whose turn ended has none. */ export declare function approvalsDecidable(status: string | null | undefined): boolean;