/** * Bind frontend dev cleanup to process lifecycle events. * * Ensures dev plugin child processes are cleaned on: * - SIGTERM / SIGINT * - graceful process drain (`beforeExit`) * - final process exit (`exit`, best-effort) */ interface Logger { warn?: (msg: string) => void; } interface BindOptions { processRef?: NodeJS.Process; logger?: Logger; } interface CleanupHandle { runCleanup: () => Promise; dispose: () => void; } interface Supervisor { shutdown: (...args: unknown[]) => Promise; } export declare function bindFrontendDevCleanup(cleanupFn: (() => Promise) | undefined | null, options?: BindOptions): CleanupHandle; export declare function wrapShutdownWithCleanup(supervisor: Supervisor | null | undefined, runCleanup: (() => Promise) | undefined | null): void; export {}; //# sourceMappingURL=FrontendDevLifecycle.d.ts.map