/** Retains lifecycle work and teardown failures after best-effort shutdown clears its lookup registries. Strict retirement waits for original operations, including work they spawn, without retrying hooks or closing shared resources. */ export declare class RuntimeRetirement { private readonly pending; private readonly failures; private revision; get generation(): number; /** Publish ownership before invoking a hook, including synchronous reentrancy. */ run(operation: () => T | PromiseLike, { beforeClose }?: { beforeClose?: boolean; }): Promise; recordFailure(scope: string, cause: unknown, { beforeClose }?: { beforeClose?: boolean; }): void; drain({ beforeCloseOnly, }?: { beforeCloseOnly?: boolean; }): Promise; }