/**
 * ShutdownManager
 *
 * Coordinates graceful shutdown of all subsystems.
 * Ensures resources are properly cleaned up when the plugin is unloaded.
 */
export type CleanupFunction = () => void | Promise<void>;
export declare class ShutdownManager {
    private cleanupHandlers;
    private isShuttingDown;
    private shutdownPromise;
    /**
     * Register a cleanup handler
     * @param name - Identifier for logging
     * @param fn - Cleanup function to execute
     * @param priority - Lower numbers run first (0-100). Default: 100
     */
    register(name: string, fn: CleanupFunction, priority?: number): void;
    /**
     * Execute all cleanup handlers in priority order
     * Each handler gets 5 seconds max
     */
    shutdown(): Promise<void>;
    private _executeShutdown;
    /**
     * Check if shutdown is in progress
     */
    isShutdown(): boolean;
}
