UNPKG

@leapwallet/embedded-wallet-sdk-react

Version:

A react library for integrating metamask snaps on a cosmos dApp

41 lines (40 loc) 2.68 kB
import { SWRConfiguration } from "swr"; import { CosmosChainData } from "./../../../core/src/services/data"; export declare const useChains: (options?: SWRConfiguration) => import("swr/_internal").SWRResponse<CosmosChainData[], any, Partial<import("swr/_internal").PublicConfiguration<CosmosChainData[], any, import("swr/_internal").BareFetcher<CosmosChainData[]>>> | undefined>; export declare const useSkipChains: (args?: Partial<{ chainIds?: string[]; includeEVM?: boolean; includeSVM?: boolean; includeTestnets?: boolean; }>, config?: SWRConfiguration) => import("swr/_internal").SWRResponse<import("@leapwallet/embedded-wallet-sdk-core").SupportedChain[], any, { errorRetryInterval?: number | undefined; errorRetryCount?: number | undefined; loadingTimeout?: number | undefined; focusThrottleInterval?: number | undefined; dedupingInterval: number; refreshInterval?: number | ((latestData: any) => number) | undefined; refreshWhenHidden?: boolean | undefined; refreshWhenOffline?: boolean | undefined; revalidateOnFocus?: boolean | undefined; revalidateOnReconnect?: boolean | undefined; revalidateOnMount?: boolean | undefined; revalidateIfStale?: boolean | undefined; shouldRetryOnError?: boolean | ((err: any) => boolean) | undefined; keepPreviousData?: boolean | undefined; suspense?: boolean | undefined; fallbackData?: any; fetcher?: import("swr/_internal").BareFetcher<any> | undefined; use?: import("swr/_internal").Middleware[] | undefined; fallback?: { [key: string]: any; } | undefined; isPaused?: (() => boolean) | undefined; onLoadingSlow?: ((key: string, config: Readonly<import("swr/_internal").PublicConfiguration<any, any, import("swr/_internal").BareFetcher<any>>>) => void) | undefined; onSuccess?: ((data: any, key: string, config: Readonly<import("swr/_internal").PublicConfiguration<any, any, import("swr/_internal").BareFetcher<any>>>) => void) | undefined; onError?: ((err: any, key: string, config: Readonly<import("swr/_internal").PublicConfiguration<any, any, import("swr/_internal").BareFetcher<any>>>) => void) | undefined; onErrorRetry?: ((err: any, key: string, config: Readonly<import("swr/_internal").PublicConfiguration<any, any, import("swr/_internal").BareFetcher<any>>>, revalidate: import("swr/_internal").Revalidator, revalidateOpts: Required<import("swr/_internal").RevalidatorOptions>) => void) | undefined; onDiscarded?: ((key: string) => void) | undefined; compare?: ((a: any, b: any) => boolean) | undefined; isOnline?: (() => boolean) | undefined; isVisible?: (() => boolean) | undefined; }>;