import type { AttestedPm2DaemonShutdownTarget } from './pm2-shutdown-capability.js'; export interface SupervisorShutdownHttpResult { status?: number; bodyRaw?: string; error?: string; } export interface SupervisorShutdownHttpInput { port: number; path: string; headers: Record; bodyRaw: string; timeoutMs: number; } export interface SupervisorShutdownClientRuntime { readStartIdentity(pid: number): string | undefined; postMany(inputs: SupervisorShutdownHttpInput[]): SupervisorShutdownHttpResult[]; } export interface SupervisorShutdownAttempt { target: AttestedPm2DaemonShutdownTarget; ok: boolean; error?: string; } /** Dispatch one bounded helper containing concurrent HTTP requests for the * whole initial fleet. One hung endpoint cannot delay request delivery to its * peers or consume N times the fleet budget. */ export declare function requestAttestedDaemonShutdownBatch(targets: readonly AttestedPm2DaemonShutdownTarget[], secret: string, runtime?: SupervisorShutdownClientRuntime): SupervisorShutdownAttempt[]; /** Send a trusted-host request to the exact daemon boot/birth generation. * The receiving process performs the decisive in-process comparison; a * successor inheriting the port rejects rather than inheriting authority. */ export declare function requestAttestedDaemonShutdown(target: AttestedPm2DaemonShutdownTarget, secret: string, runtime?: SupervisorShutdownClientRuntime): void; //# sourceMappingURL=supervisor-shutdown-client.d.ts.map