import type { RegisteredHost } from "./host-daemon-registration.ts";
/**
 * The registration the operator saw and authorized, never a newly resolved target. `processStartTime`
 * is null where the platform cannot read it (Windows); the key itself is always present.
 */
export interface HostStopGeneration {
    readonly instanceId: string;
    readonly generation: number;
    readonly pid: number;
    readonly processStartTime: string | null;
}
export declare function parseHostStopGeneration(text: string): HostStopGeneration | undefined;
/**
 * How the current registration compares with the confirmed one:
 * - `proven`: same generation, and the start times agree; the live process is still checked before signalling.
 * - `bound_without_start_time`: same pid, instance and generation on a platform that records no start time.
 * - `stale`: a different generation, pid or start time holds the endpoint now.
 * - `unprovable`: same generation, but the start time cannot prove the process (`unknown_owner`).
 */
export type StopGenerationMatch = "proven" | "bound_without_start_time" | "stale" | "unprovable";
export declare function compareStopGeneration(registered: RegisteredHost | undefined, expected: HostStopGeneration): StopGenerationMatch;
//# sourceMappingURL=host-stop-generation.d.ts.map