import type { Server } from 'node:net'; /** * Wait for one shutdown stage without allowing it to consume systemd's entire * stop timeout. The work is not cancelled: deployment/lease code retains its * own fencing rules, while the caller decides whether an expired global drain * deadline must terminate the process non-zero. */ export declare function settleWithin(work: Promise, timeoutMs: number, setTimer?: typeof setTimeout, clearTimer?: typeof clearTimeout): Promise; /** Stop accepting local Vault clients, but never let one stale socket defeat shutdown. */ export declare function closeServerWithin(server: Server, timeoutMs: number): Promise;