import { z } from 'zod'; export type ValidationErrorOptions = { path: string[]; code: string; message: string; }; /** This error is thrown when a validation fails. */ export declare class ValidationError extends Error { /** The path to the value that failed validation. */ path: string[]; /** The error code. */ code: string; /** The error message. */ message: string; constructor({ path, code, message }: ValidationErrorOptions); } export type ParseErrorOptions = { path: string[]; code: string; message: string; received?: unknown; }; /** This error is thrown when a parse fails on an option value. */ export declare class ParseError extends Error { /** The path to the value that failed parsing. */ path: string[]; /** The error code. */ code: string; /** The error message. */ message: string; /** The value that failed parsing. */ received: unknown; constructor({ path, code, message, received }: ParseErrorOptions); } export declare function isZodError(e: unknown): e is z.ZodError; //# sourceMappingURL=error.d.ts.map