/** * The doubles the outage case's second gateway runs against: an authority * that cannot be reached, and an upstream that records what reaches it and * effects nothing. The second gateway is built from the configuration the * deployed process loaded, so what it shows is that configuration, under * this runtime, failing closed; it shows nothing about the real authority or * the real upstream, which it never contacts. */ import type { ApiProfile, JsonValue } from "@decionis/agent-safe-pipeline"; import type { FetchLike } from "../handlers/HandlerRegistration.js"; /** The authority, unreachable: every call fails before a byte is sent. */ export declare const AUTHORITY_UNREACHABLE: FetchLike; /** The version a read of the recording upstream states. */ export declare const OUTAGE_VERSION = "acceptance-outage"; /** * An answer that states a version, and a state, wherever any write's * precondition looks for one: the read the gateway makes before it asks the * authority then succeeds, so the case reaches the authority it cannot ask. */ export declare function statingAnswer(profile: ApiProfile | null): { readonly headers: Record; readonly body: JsonValue | undefined; }; /** * The upstream the second gateway forwards to: a read is answered with the * stating answer, and anything else is counted and refused. A write counted * here is one that would have reached the real upstream with the authority * down, which is what the case looks for. */ export declare function recordingUpstream(profile: ApiProfile | null): { readonly fetch: FetchLike; readonly writes: () => number; }; //# sourceMappingURL=OutageDoubles.d.ts.map