import { ZodError } from 'zod'; import { APIError } from './APIError'; /** * Error thrown when server response data (VO - Value Object) fails validation against the defined Zod schema. * This error indicates a server-side issue where the API handler returned data that doesn't match the expected format. * Extends APIError with HTTP 500 status code to indicate an internal server validation error. * * @example * ```typescript * // API should return { id: string, name: string } * // Server returns { id: 123, name: "John" } (id should be string, not number) * // Results in InvalidVOError being thrown * * try { * const result = await callAPI(apiDefinition, requestData) * } catch (error) { * if (error instanceof InvalidVOError) { * console.log('Server validation errors:', error.zodError?.issues) * } * } * ``` */ export declare class InvalidVOError extends APIError { readonly zodError?: ZodError | undefined; /** * Creates a new InvalidVOError instance. * * @param zodError - Optional ZodError containing detailed validation failure information */ constructor(zodError?: ZodError | undefined); } //# sourceMappingURL=InvalidVOError.d.ts.map