/** * SDK Package Error Types */ import { CirclesError } from '@aboutcircles/sdk-utils'; /** * SDK-specific error sources */ export type SdkErrorSource = 'SDK' | 'SDK_INITIALIZATION' | 'SDK_CONFIG' | 'SDK_OPERATION'; /** * SDK-related errors */ export declare class SdkError extends CirclesError { constructor(message: string, options?: { code?: string | number; source?: SdkErrorSource; cause?: unknown; context?: Record; }); /** * Create error for uninitialized components */ static notInitialized(component: string): SdkError; /** * Create error for unsupported operations */ static unsupportedOperation(operation: string, reason?: string): SdkError; /** * Create error for configuration issues */ static configError(message: string, context?: Record): SdkError; /** * Create error for failed operations */ static operationFailed(operation: string, reason: string, cause?: unknown): SdkError; /** * Create error for missing contract runner */ static missingContractRunner(operation?: string): SdkError; /** * Create error for avatar not found */ static avatarNotFound(address: string): SdkError; /** * Create error for invalid profile */ static invalidProfile(reason: string, context?: Record): SdkError; /** * Create error for profile operation failures */ static profileOperationFailed(operation: string, reason: string, cause?: unknown): SdkError; /** * Create error for insufficient balance */ static insufficientBalance(required: string, available: string, token?: string): SdkError; /** * Create error for transaction extraction failures */ static transactionDataExtractionFailed(dataType: string, reason?: string): SdkError; /** * Create error for registration failures */ static registrationFailed(avatarType: string, reason: string, cause?: unknown): SdkError; } //# sourceMappingURL=errors.d.ts.map