/** Install ordinary-command cleanup and its maximum flush duration. */
export declare function initializeCliLifecycle(cleanup: () => Promise<void>, timeoutMs?: number): void;
/** Delegate signals to a long-lived command that owns draining and exit. */
export declare function registerCliShutdownOwner(handler: (signal: NodeJS.Signals) => Promise<void>): void;
/** Flush ordinary commands once; an active shutdown owner manages its own cleanup. */
export declare function cleanupCliLifecycle(): Promise<void>;
/** Bound best-effort cleanup without allowing rejection to escape a signal handler. */
export declare function runBoundedCliCleanup(cleanup: () => Promise<unknown>, timeoutMs?: number, onTimeout?: () => void): Promise<void>;
