export declare const DEFAULT_PROXY_SHUTDOWN_CLEANUP_TIMEOUT_MS = 4000; export interface ProxyShutdownStep { readonly name: string; readonly run: () => void | PromiseLike; /** Earlier steps that must complete before this owner can be released. */ readonly requires?: readonly string[]; } export interface ProxyShutdownFailure { readonly step: string; readonly error: unknown; readonly timedOut: boolean; } export interface RunProxyShutdownStepsOptions { readonly timeoutMs: number; readonly onFailure?: (failure: ProxyShutdownFailure) => void; } export declare function parseProxyShutdownCleanupTimeoutMs(rawValue: string | undefined, defaultValue?: number): number; /** * Run cleanup steps in ownership order while ensuring one failure cannot skip * independent later owners. A shared deadline bounds total asynchronous * cleanup. Steps whose declared owner prerequisite did not complete are * skipped rather than tearing that owner down underneath an active borrower. */ export declare function runProxyShutdownSteps(steps: readonly ProxyShutdownStep[], options: RunProxyShutdownStepsOptions): Promise; //# sourceMappingURL=shutdown-lifecycle.d.ts.map