import type { OpenGeniClient, SessionEvent, SessionSummary } from "@opengeni/sdk"; import type { HumanInputFormProps } from "../../../components/human-input-form.js"; /** The exact client surface the card reads and answers through. */ export type DescendantRequestsClient = Pick; export type DescendantRequestsProps = { client: DescendantRequestsClient; workspaceId: string; /** The session whose page shows the card; keys the collapsed preference. */ parentSessionId: string; /** * The viewing session's own events: its messages that handed a question to * its agent mark that card as being decided. */ events?: readonly SessionEvent[] | undefined; /** Descendants waiting on the person, longest-waiting first. */ waiting: readonly SessionSummary[]; /** Something was answered or decided here: re-read the tree. */ onResolved?: (() => void) | undefined; /** * A sub-session started resuming from an approval decided here (`true`), or * has no approval left to decide while it runs (`false`). While it resumes, * the host keeps it in `waiting` so its other approvals stay decidable. */ onResumingChange?: ((sessionId: string, resuming: boolean) => void) | undefined; /** Bumped when this session's agent answered or steered a sub-session; every item re-reads. */ refreshSignal?: number | undefined; loadSkillReview?: HumanInputFormProps["loadSkillReview"]; allowedSaveTo?: HumanInputFormProps["allowedSaveTo"]; /** Safety-net re-read of questions while shown (live hints drive the rest). */ pollIntervalMs?: number | undefined; }; export declare function resetDescendantRequestsStateForTests(): void; /** * Pending questions and approvals from a session's sub-sessions. One waiting * sub-session shows its request directly; several stack under one line that * collapses them ("3 sub-sessions need you"). Each request names the * sub-session asking and links to it. */ export declare function DescendantRequests(props: DescendantRequestsProps): import("react").JSX.Element | null; export default DescendantRequests;