import { OnResponseArgs } from '../http'; export declare function shouldResponseTriggerMaintenance(responseStatus: number, requestUrl: string): boolean; /** * Builds the `onResponse` handler that keeps maintenance mode in sync with what the server * answers. Maintenance is the explicit 503 signal, not general unhealthiness, so any other real * response (2xx, 4xx, or a 5xx that isn't the signal) clears it. Only a transport-level failure * (no response at all) is left untouched, since that's not evidence either way. */ export declare function maintenanceResponseHandler(onSetMaintenance: (value: boolean) => void): ({ response, status, requestUrl }: OnResponseArgs) => void;