import type { Application, ApplicationLogger, HttpAdapterShutdownRegistration } from '@fluojs/runtime'; /** Signals accepted by the Node host shutdown registration. */ export type NodeShutdownSignal = 'SIGINT' | 'SIGTERM'; /** * Returns the default POSIX shutdown signals used by Node-hosted runtime helpers. * * @returns The ordered list of signals that trigger graceful shutdown registration. */ export declare function defaultNodeShutdownSignals(): readonly NodeShutdownSignal[]; /** * Creates shutdown registration logic for Node-hosted adapters. * * The returned registration preserves graceful shutdown semantics while leaving * final process termination ownership to the surrounding host/runtime. * * @param signals Signals to register, or `false` to disable signal handling. * @returns Registration callback supplied to `FluoFactory.create(..., { shutdownRegistration })`. */ export declare function createNodeShutdownSignalRegistration(signals?: false | readonly NodeShutdownSignal[]): HttpAdapterShutdownRegistration; /** * Registers process signal handlers that attempt graceful shutdown. * * When the shutdown timeout elapses, the helper records failure via logging and * `process.exitCode` but does not terminate the host process directly. * * @param app Application instance to close when a signal arrives. * @param logger Logger used for shutdown diagnostics. * @param signals Signals to bind, or `false` to skip registration. * @param forceExitTimeoutMs Timeout window used to mark shutdown as failed. * @returns Unregister callback that removes the installed signal handlers. */ export declare function registerShutdownSignals(app: Application, logger: ApplicationLogger, signals: false | readonly NodeShutdownSignal[], forceExitTimeoutMs?: number): () => void; //# sourceMappingURL=internal-node-shutdown.d.ts.map