import { type SubagentLifecycleEndedReason } from "./subagent-lifecycle-events.js"; import type { SubagentRunRecord } from "./subagent-registry.types.js"; /** * Runtime attestation (ADR 0005 H9). Declares the implementation status * of each runtime export in this module. See CONTRIBUTING.md ยง Module * attestations for the category definitions and the convention for * updating these when sync or rebrand changes the surface. */ export declare const MODULE_ATTESTATIONS: { readonly resolveCleanupCompletionReason: "live"; readonly resolveDeferredCleanupDecision: "live"; }; export type DeferredCleanupDecision = { kind: "defer-descendants"; delayMs: number; } | { kind: "give-up"; reason: "retry-limit" | "expiry"; retryCount?: number; } | { kind: "retry"; retryCount: number; resumeDelayMs?: number; }; export declare function resolveCleanupCompletionReason(entry: SubagentRunRecord): SubagentLifecycleEndedReason; export declare function resolveDeferredCleanupDecision(params: { entry: SubagentRunRecord; now: number; activeDescendantRuns: number; announceExpiryMs: number; announceCompletionHardExpiryMs: number; maxAnnounceRetryCount: number; deferDescendantDelayMs: number; resolveAnnounceRetryDelayMs: (retryCount: number) => number; }): DeferredCleanupDecision;