export type ShutdownCallback = () => void; /** * Register signal handlers for graceful shutdown. * Call once at CLI startup. Safe to call multiple times (idempotent). */ export declare function registerShutdownHandlers(): void; /** * Set the active build root so cleanup knows which directory to clean. */ export declare function setActiveRoot(root: string): void; /** * Clear the active root after a successful build completes. */ export declare function clearActiveRoot(): void; /** * Register an additional cleanup callback to run during shutdown. */ export declare function onShutdown(callback: ShutdownCallback): void; /** * Run all cleanup actions. Called by signal handlers. * Also exported for testing. */ export declare function performCleanup(): void; /** * Reset all state. Used in tests only. */ export declare function resetLifecycle(): void; //# sourceMappingURL=lifecycle.d.ts.map