declare type RadixAPIError = { message: string; code?: number; details?: { type: string; } & Record; traceId?: string; }; declare enum ErrorType { API = "API", HARDWARE_WALLET = "HardwareWallet" } declare type ErrorParams = { [ErrorType.API]: RadixAPIError; [ErrorType.HARDWARE_WALLET]: { message: string; }; }; export declare const radixError: (type: T) => (params: Params) => { type: T; name: string; message: string; stack?: string | undefined; } & Params; export declare const radixAPIError: (params: Params) => { type: ErrorType.API; name: string; message: string; stack?: string | undefined; } & Params; declare type APIError = ReturnType; export declare const hwWrapper: (params: Params) => { type: ErrorType.HARDWARE_WALLET; name: string; message: string; stack?: string | undefined; } & Params; declare type HWError = ReturnType; export declare type RadixError = APIError | HWError; export {}; //# sourceMappingURL=radixError.d.ts.map