import type { StandardSchemaV1 } from "@standard-schema/spec"; import type { StatusCode } from "../http/index.js"; import { ClientError } from "../util/index.js"; export type ValidationErrorSource = "body" | "search_params" | "path" | "header"; /** * Error thrown when a schema validation fails. */ export declare class ValidationError extends ClientError { readonly issues: readonly StandardSchemaV1.Issue[]; readonly source: ValidationErrorSource; constructor(status: StatusCode, message: string, issues: readonly StandardSchemaV1.Issue[], source: ValidationErrorSource); }