export declare abstract class PrivyError extends Error { /** * Privy error type. */ abstract type: string; /** * Original Error object, it the error originated client-side. */ cause?: Error; /** * @param type Privy error type. * @param message Human-readable message. * @param cause Source of this error. */ protected constructor(message: string, cause?: unknown); toString(): string; } /** * Issues with the Privy api. */ export declare class PrivyApiError extends PrivyError { type: string; /** * HTTP status code, or `null` if no response was received. */ status: number | null; constructor(type: string, status: number | null, message: string, cause?: unknown); } /** * Issues with the Privy client. */ export declare class PrivyClientError extends PrivyError { type: string; constructor(message: string, cause?: unknown); } export declare const wrapApiError: (error: unknown) => unknown; export declare const formatPrivyError: (error: unknown) => PrivyError;