import { WBAPIError } from './base-error'; /** * Authentication error thrown when API key is invalid or lacks permissions. * * This error is thrown for: * - 401 Unauthorized responses (invalid API key) * - 403 Forbidden responses (insufficient permissions) * - Client-side API key validation failures * * @example * ```typescript * import { AuthenticationError } from 'daytona-wildberries-typescript-sdk'; * * try { * await sdk.general.ping(); * } catch (error) { * if (error instanceof AuthenticationError) { * console.error('Invalid API key:', error.getUserMessage()); * // Prompt user to update API key in settings * } * } * ``` */ export declare class AuthenticationError extends WBAPIError { /** * Creates an authentication error * * @param message - Error message (defaults to standard authentication failure message) * @param statusCode - HTTP status code (401 or 403) * @param response - API response body if available * @param requestId - Correlation ID for debugging * @param origin - Origin service identifier from RFC 7807 responses * @param timestamp - ISO 8601 timestamp from RFC 7807 responses */ constructor(message?: string, statusCode?: 401 | 403, response?: unknown, requestId?: string, origin?: string, timestamp?: string); /** * Returns user-friendly error message with API key troubleshooting guidance * * @returns Error message with actionable recovery steps */ getUserMessage(): string; } //# sourceMappingURL=auth-error.d.ts.map