import type { ProxyRestartControlIdentity, ProxyRestartControlOptions, ProxyRestartResult, ProxySupervisorTelemetry } from "../types/index.js";
/**
 * Own restart completion in the supervisor, so a disconnected CLI cannot leave
 * admission closed. The control socket is private to the service's OS user.
 * No update history, launcher, environment file or launchd unit is rewritten.
 */
export declare function startProxyRestartControl(options: ProxyRestartControlOptions): Promise<{
    identity: ProxyRestartControlIdentity;
    close: () => Promise<void>;
}>;
/** Query the private supervisor endpoint with a short, bounded read; never restart. */
export declare function requestProxySupervisorTelemetry(identity: ProxyRestartControlIdentity | undefined, expectedPid: number): Promise<ProxySupervisorTelemetry>;
/** Perform one local control operation; never fall back to killing a process. */
export declare function requestProxyRestart(identity: ProxyRestartControlIdentity, check: boolean): Promise<ProxyRestartResult>;
