import type { DeserializationResult, SerializationResult, ValidationMode } from 'yaschema'; import type { AnyBody } from '../types/AnyBody'; import type { AnyHeaders } from '../types/AnyHeaders'; import type { AnyStatus } from '../types/AnyStatus'; import type { GenericApiResponse } from '../types/GenericApiResponse'; /** Determines response schema validation results and conceptually returns one of three states: valid, invalid (soft validation error), or * invalid (hard validation error). For invalid cases, additional metadata is included in the result. */ export declare const checkResponseValidation: ({ resStatus, resHeaders, resBody, validationMode }: { resStatus: SerializationResult | DeserializationResult>; resHeaders: SerializationResult | DeserializationResult>; resBody: SerializationResult | DeserializationResult>; validationMode: ValidationMode; }) => ({ ok: true; } & ({ hadSoftValidationError: false; invalidPart?: undefined; validationError?: undefined; validationErrorPath?: undefined; } | { hadSoftValidationError: true; invalidPart: keyof GenericApiResponse; validationError: string; validationErrorPath: string; })) | { ok: false; invalidPart: keyof GenericApiResponse; validationError: string; validationErrorPath: string; }; //# sourceMappingURL=check-response-validation.d.ts.map