//#region src/death.d.ts type DeathSignals = 'SIGINT' | 'SIGTERM' | 'SIGQUIT'; interface OnDeathContext { triggered: Date | undefined; terminate: 'exit' | 'kill' | false; exit: number | undefined; kill: NodeJS.Signals | undefined; } type OnDeathCallback = (signal: DeathSignals, context: OnDeathContext) => unknown | Promise; interface OnDeathOptions { SIGINT?: boolean; SIGTERM?: boolean; SIGQUIT?: boolean; } declare function onDeath(callback: OnDeathCallback, { SIGINT, SIGTERM, SIGQUIT }?: OnDeathOptions): () => void; declare function useDeath(callback: OnDeathCallback, options?: OnDeathOptions): { [Symbol.dispose]: () => void; }; //#endregion export { DeathSignals, OnDeathCallback, OnDeathContext, OnDeathOptions, onDeath, useDeath };