interface RegisterOptions { reportCoverage?: boolean; exportCoverage?: boolean; } /** * OpenAPI assertions for validating HTTP responses against OpenAPI specifications. * * This is a drop-in replacement for @japa/openapi-assertions with OpenAPI 3.1 support. */ export declare class OpenApiAssertions { /** * Compiled validators from registered specs. */ private static validators; /** * Flag indicating if specs have been registered. */ private static hasRegistered; /** * Coverage options. */ private static coverageOptions; /** * Register OpenAPI specs to validate responses against. * This method is SYNCHRONOUS to match the original @japa/openapi-assertions API. * * @param schemaPathsOrURLs - Paths or URLs to OpenAPI spec files * @param options - Coverage reporting options */ static registerSpecs(schemaPathsOrURLs: (string | URL)[], options?: RegisterOptions): void; /** * Reset the assertions state (useful for testing). */ static reset(): void; /** * Get validators, throwing if not registered. */ private static getValidators; /** * Validate that a response matches the OpenAPI specification. * This method is SYNCHRONOUS to match the original @japa/openapi-assertions API. * * @param response - HTTP response object from axios, supertest, or Japa api-client * @throws AssertionError if the response does not match the spec */ isValidResponse(response: unknown): void; } export {}; //# sourceMappingURL=openapi_assertions.d.ts.map