UNPKG

@lifi/sdk

Version:

LI.FI Any-to-Any Cross-Chain-Swap SDK

16 lines 758 B
import { ChainId, type ChainType, type ExtendedChain } from '@lifi/types'; import type { SDKProvider } from './core/types.js'; import type { RPCUrls, SDKBaseConfig, SDKConfig } from './types/internal.js'; export declare const config: { loading: Promise<void>; get(): SDKBaseConfig; set(options: SDKConfig): SDKBaseConfig; getProvider(type: ChainType): SDKProvider | undefined; setProviders(providers: SDKProvider[]): void; setChains(chains: ExtendedChain[]): void; getChains(): Promise<ExtendedChain[]>; getChainById(chainId: ChainId): Promise<ExtendedChain>; setRPCUrls(rpcUrls: RPCUrls, skipChains?: ChainId[]): void; getRPCUrls(): Promise<Partial<Record<ChainId, string[]>>>; }; //# sourceMappingURL=config.d.ts.map