import { BareFetcher, Key, SWRConfiguration } from 'swr'; export interface SWRConfigCommon { suspense?: boolean; refreshInterval?: number; errorRetryInterval?: number; } export declare const withPolling: (interval: number) => { refreshInterval: number; dedupingInterval: number; /** dedupe multiple requests */ }; export declare const getAccountIdentifier: (account: { networkId: string; address: string; }) => string; /** * `useSWR` with additional flag that will enable or disable calling the fetcher and clears data when disabled * * This is useful when data fetching may be dependent on a user setting */ export declare function useConditionallyEnabledSWR(enabled: boolean, key: Key, fetcher: BareFetcher | null, config?: SWRConfiguration>): import('swr').SWRResponse; export declare const swrRefetchDisabledConfig: SWRConfiguration;