/**
 * Production-grade signal handling for graceful shutdown
 * Handles SIGTERM, SIGINT, and SIGHUP for proper cleanup
 */
export type ShutdownHandler = () => Promise<void> | void;
export interface SignalHandlerOptions {
    /** Timeout in milliseconds before forcing shutdown (default: 30000) */
    shutdownTimeout?: number;
    /** Custom logger for shutdown events */
    logger?: {
        info: (_message: string, _meta?: Record<string, unknown>) => void;
        warn: (_message: string, _meta?: Record<string, unknown>) => void;
        error: (_message: string, _meta?: Record<string, unknown>) => void;
    };
}
/**
 * Graceful shutdown manager for production systems
 */
export declare class SignalHandler {
    private handlers;
    private isShuttingDown;
    private readonly shutdownTimeout;
    private readonly logger?;
    constructor(options?: SignalHandlerOptions);
    /**
     * Register a shutdown handler to be called during graceful shutdown
     */
    register(handler: ShutdownHandler): void;
    /**
     * Install signal handlers for SIGTERM, SIGINT, and SIGHUP
     */
    install(): void;
    /**
     * Remove signal handlers
     */
    uninstall(): void;
    /**
     * Handle shutdown signals gracefully
     */
    private handleSignal;
    /**
     * Execute all registered shutdown handlers
     */
    private executeShutdown;
    /**
     * Trigger graceful shutdown manually
     */
    shutdown(): Promise<void>;
}
//# sourceMappingURL=signal-handler.d.ts.map