import type { ShutdownHandler, ShutdownManagerOptions } from './types.js';
export declare class ShutdownManager {
    private handlers;
    private isShuttingDown;
    private timeoutMs;
    private boundSigterm;
    private boundSigint;
    private boundUncaughtException;
    private boundUnhandledRejection;
    constructor(options?: ShutdownManagerOptions);
    register(handler: ShutdownHandler): void;
    unregister(name: string): void;
    gracefulShutdown(exitCode?: number): Promise<void>;
    private setupSignalHandlers;
    reset(): void;
}
export declare function getShutdownManager(options?: ShutdownManagerOptions): ShutdownManager;
export declare function resetShutdownManager(): void;
//# sourceMappingURL=shutdown-manager.d.ts.map