/** Why a probe failed, when it did. */ export type CanaryCode = 'ok' | 'refused' | 'timeout' | 'denied' | 'protocol' | 'echo-mismatch'; export interface CanaryResult { ok: boolean; code: CanaryCode; latencyMs: number; /** CONNECT reply status, when the listener answered. */ status?: number; } export interface CanaryOptions { host?: string; timeoutMs?: number; } /** * Open an echo server on an ephemeral loopback port, tunnel to it through the * guard, and verify the payload survives. The probe exercises the same * CONNECT path a client uses, so a bound-but-broken listener fails here. */ export declare function runEgressCanary(port: number, options?: CanaryOptions): Promise; //# sourceMappingURL=canary.d.ts.map