UNPKG

@magiceden/magiceden-sdk

Version:

A TypeScript SDK for interacting with Magic Eden's API across multiple chains.

15 lines (14 loc) 575 B
import { RetryConfig } from 'ts-retry-promise'; /** * Determines if an error is retryable based on its type and properties */ export declare function isRetryableError(error: any): boolean; /** * Retries an operation with exponential backoff * * @param operation The async function to retry * @param options Optional configuration to override defaults * @returns The result of the operation * @throws The last error encountered if all retries fail */ export declare function retryOperation<T>(operation: () => Promise<T>, options?: Partial<RetryConfig>): Promise<T>;