/** * PaymentsError extends Error to provide detailed error information for payments and authentication. * Supports error codes for unauthorized, payment required, and other payment-related errors. */ export declare class PaymentsError extends Error { code: string; /** * Creates a new PaymentsError instance. * @param message - The error message * @param code - The error code (e.g., 'unauthorized', 'payment_required') */ constructor(message: string, code?: string); static fromBackend(message: string, error: any): PaymentsError; /** * Creates an unauthorized error (missing or invalid credentials). * @param message - Optional custom message */ static unauthorized(message?: string): PaymentsError; /** * Creates a payment required error (insufficient credits, etc.). * @param message - Optional custom message */ static paymentRequired(message?: string): PaymentsError; /** * Creates a generic validation error. * @param message - Optional custom message */ static validation(message?: string): PaymentsError; /** * Creates an internal error. * @param message - Optional custom message */ static internal(message?: string): PaymentsError; } //# sourceMappingURL=payments.error.d.ts.map