export type ShutdownCallback = (error?: Error) => void | Promise<void>;
declare class Shutdowner {
    #private;
    constructor();
    registerShutdownCallback(callback: ShutdownCallback): void;
    exitWithCode(code: 1 | 0, error?: Error): Promise<never>;
}
export declare const shutdowner: Shutdowner;
export {};
//# sourceMappingURL=shutdowner.d.ts.map