@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
19 lines • 749 B
TypeScript
import type { ShutdownHandler, ShutdownManagerOptions } from './types.js';
export declare class ShutdownManager {
private handlers;
private isShuttingDown;
private timeoutMs;
private boundSigterm;
private boundSigint;
private boundUncaughtException;
private boundUnhandledRejection;
constructor(options?: ShutdownManagerOptions);
register(handler: ShutdownHandler): void;
unregister(name: string): void;
gracefulShutdown(exitCode?: number): Promise<void>;
private setupSignalHandlers;
reset(): void;
}
export declare function getShutdownManager(options?: ShutdownManagerOptions): ShutdownManager;
export declare function resetShutdownManager(): void;
//# sourceMappingURL=shutdown-manager.d.ts.map