import { type ChildPausedPayload, type ChildProgressPayload, type ChildRequiresActionPayload, type ChildRequiresActionResolvedPayload, type ChildWaitingCapacityPayload, type HumanInputQuestion } from "@opengeni/contracts"; export declare function configureChildLifecycleNotices(input: { enabled: boolean; }): void; export declare function childLifecycleNoticesEnabled(): boolean; /** Bounded UTF-8 prefix with an explicit marker; never splits a code point. */ export declare function boundedChildNoticeText(value: string, maxBytes: number): { text: string; truncated: boolean; }; export declare const CHILD_LIFECYCLE_DEDUPE_PREFIX: { readonly requiresAction: "child-requires-action"; readonly requiresActionResolved: "child-requires-action-resolved"; readonly paused: "child-paused"; readonly waitingCapacity: "child-waiting-capacity"; readonly progress: "child-progress"; }; export declare function childRequiresActionDedupeKey(input: { childSessionId: string; turnId: string; turnGeneration: number; }): string; export declare function childRequiresActionResolvedDedupeKey(input: { childSessionId: string; turnId: string; turnGeneration: number; requestId: string | null; approvalId: string | null; }): string; export declare function childPausedDedupeKey(input: { childSessionId: string; receiptId: string; }): string; export declare function childWaitingCapacityDedupeKey(input: { childSessionId: string; waiterId: string; /** * Set for a notice restating the reset of a wait the parent was already * told about (ISO, or null when it became unknown); the first notice of a * waiter has no suffix. */ restatedResetsAt?: string | null; /** Sequence of the child's new waiting event when the explanation changes. */ restatedReasonSequence?: number; }): string; export declare function childProgressDedupeKey(input: { childSessionId: string; receiptId: string; }): string; /** * A question only a person can answer, never the agent above: a secret, a * Skill review confirmation, or Opengeni's own secret-use approval. */ export declare function humanInputQuestionIsPersonOnly(question: HumanInputQuestion): boolean; /** * Build the bounded child_requires_action payload from the child's frozen * human-input requests and pending approvals. Typed facts, a bounded * first-question preview and a compact copy of every question (ids, kind, * prompt, option labels) cross to the parent so its agent can answer: * never subject ids, secret specs, credentials, or raw tool arguments. The * whole payload stays within CHILD_REQUIRES_ACTION_PAYLOAD_MAX_BYTES: compact * questions are dropped from trailing requests first, then trailing requests * themselves, recording `truncated`. */ export declare function buildChildRequiresActionPayload(input: { childSessionId: string; childTurnId: string; childTurnGeneration: number; humanInputRequests: ReadonlyArray<{ id: string; questions: readonly HumanInputQuestion[]; allowSkip: boolean; expiresAt?: Date | null; }>; pendingApprovals: readonly unknown[]; }): ChildRequiresActionPayload; export declare function childRequiresActionSummary(childSessionId: string, payload: ChildRequiresActionPayload): string; export declare function childRequiresActionResolvedSummary(childSessionId: string, payload: ChildRequiresActionResolvedPayload): string; export declare function childPausedSummary(childSessionId: string, payload: ChildPausedPayload): string; export declare function childWaitingCapacitySummary(childSessionId: string, payload: ChildWaitingCapacityPayload, explanation?: string): string; export declare function childProgressSummary(childSessionId: string, payload: ChildProgressPayload): string; export declare function boundedChildPausedReason(reason: string | null | undefined): string | null; export declare function boundedChildProgressNote(note: string): string;