import { type ChildProcess, type SpawnOptions } from "node:child_process"; export interface LegacyMigrationResult { lockPath: string; preservedQueue: string; generation: string; } export declare class LegacyWriterLifecycle { #private; readonly directory: string; readonly lockPath: string; private constructor(); static create(scopeDirectory: string): LegacyWriterLifecycle; /** Only direct child writers are covered. Do not use for daemonizing programs. * The caller may request shutdown, but this module never signals a process. */ spawn(command: string, args?: readonly string[], options?: SpawnOptions): ChildProcess; /** Close admission now; finish only after actual exit observations. A timeout * leaves the gate closed, the queue untouched, and may be retried. */ drainAndMigrate(options: { timeoutMs: number; }): Promise; } //# sourceMappingURL=legacy-writer-lifecycle.d.ts.map