type ShutdownHandler = () => void | Promise; export type ShutdownSignal = { readonly aborted: boolean; addEventListener: (type: "abort", listener: () => void) => void; removeEventListener: (type: "abort", listener: () => void) => void; }; export declare const shutdownSignal: ShutdownSignal; export declare function onShutdown(name: string, handler: ShutdownHandler): () => void; export declare function isShutdown(): boolean; export declare function awaitShutdown(): Promise; export declare function requestShutdown(signal?: NodeJS.Signals | "fatal"): void; export {}; //# sourceMappingURL=shutdown.d.ts.map