/** * Restore whichever API configuration was active before a test suite ran. * * Several admin integration suites POST `activateConfiguration` against a LIVE * admin service, and none of them put back what was there. On 2026-08-06 that * left a 98-byte test stub — "Test Configuration After Fix", no `defaultHooks` * at all — active on a developer's running stack. The gateway reads its * configuration from the admin service at runtime, so every plugin silently * stopped running: hosted tools went upstream verbatim and codex-cli got a 400 * from SAP. The tests all passed. Nothing pointed at them. * * Refusing to run against a live service is the wrong answer — some end-to-end * suites require one. Restoring is the right one. * * Usage, at the top of a suite that activates anything: * * guardActiveConfiguration(); * * It registers its own beforeAll/afterAll, so it must be called inside a * `describe` or at module top level, like the Jest hooks it wraps. */ export interface ActiveConfigGuardOptions { /** Defaults to ADMIN_SERVICE_URL, which setupTests populates. */ baseUrl?: string; /** Defaults to the mocked-auth admin user the integration suites already use. */ auth?: string; timeoutMs?: number; } export declare function guardActiveConfiguration(options?: ActiveConfigGuardOptions): void;