/** * Shutdown Handling * * Process shutdown reason tracking and cleanup. */ type ShutdownReason = { kind: 'signal'; signal: string; } | { kind: 'uncaughtException'; message: string; } | { kind: 'startupError'; message: string; } | { kind: 'stopError'; message: string; } | { kind: 'unknown'; }; declare let lastShutdownReason: ShutdownReason; declare let restartInProgress: boolean; declare let currentRuntimeLifecyclePath: string | null; declare function setCurrentRuntimeLifecyclePath(value: string | null): void; declare function createRuntimeRunId(): string; declare function recordShutdownReason(reason: ShutdownReason): void; declare function getShutdownReason(): ShutdownReason; declare function isRestartInProgress(): boolean; declare function setRestartInProgress(value: boolean): void; declare function getCurrentRuntimeLifecyclePath(): string | null; export { recordShutdownReason, getShutdownReason, isRestartInProgress, setRestartInProgress, createRuntimeRunId, setCurrentRuntimeLifecyclePath, getCurrentRuntimeLifecyclePath, lastShutdownReason, restartInProgress, currentRuntimeLifecyclePath }; export type { ShutdownReason };