import { RgbLibErrors } from './Interfaces'; /** * Custom error class for RGB library errors. * Provides structured error information with error codes and messages. */ export declare class RgbError extends Error { readonly originalError?: unknown | undefined; /** * Error code from the native module. * This helps identify which operation failed. */ readonly code: RgbLibErrors; /** * Original error message from the native module. */ readonly nativeMessage: string; constructor(code: RgbLibErrors, message: string, originalError?: unknown | undefined); isCode(code: RgbLibErrors): boolean; toString(): string; /** * Converts a React Native error to an RgbError. * React Native errors from native modules typically have a code and message. * @param error - The error from React Native * @returns An RgbError instance, or the original error if it cannot be converted */ static fromReactNativeError(error: unknown): RgbError | Error; } //# sourceMappingURL=RgbError.d.ts.map