/** * Process safety nets * * The server handles many independent operations in a row. An error that * surfaces outside a handler — from an SFTP channel, a timer, a promise * nobody's watching — terminates the whole Node process by default: the * client loses not one call but the entire session with every profile. * Here such an error becomes a log entry instead, and the server keeps * responding. * * The one exception is a closed channel to the client: there's no one left * to work for, and no reason to stay in memory. */ export declare function installProcessGuards(target?: NodeJS.Process): void;