import { OpenfortError, type OpenfortErrorOptions } from './base.js'; /** * An argument reached an action hook in a shape it cannot act on. * * @example * ```ts * import { ValidationError } from '@openfort/react' * * const error = new ValidationError('The transaction request is invalid.') * console.log(error.shortMessage) * ``` */ export declare class ValidationError extends OpenfortError { name: string; constructor(shortMessage: string, options?: OpenfortErrorOptions); } /** * A required argument was omitted or empty. * * @example * ```ts * import { MissingParameterError } from '@openfort/react' * * const error = new MissingParameterError({ params: ['email', 'password'] }) * console.log(error.shortMessage) * ``` */ export declare class MissingParameterError extends ValidationError { name: string; /** Names the missing arguments so the message points at the exact call site fix. */ constructor({ params, ...options }: OpenfortErrorOptions & { params: string[]; }); } /** * An email address failed the SDK's format check before any network call. * * @example * ```ts * import { InvalidEmailError } from '@openfort/react' * * const error = new InvalidEmailError({ email: 'user@example' }) * console.log(error.shortMessage) * ``` */ export declare class InvalidEmailError extends ValidationError { name: string; constructor({ email, ...options }?: OpenfortErrorOptions & { email?: string | undefined; }); }