import React, { FC, PropsWithChildren } from 'react'; import { Web3Client, ConnectResponse, Chain } from '@cxptek/web3client'; import { Languages } from '../types'; type Web3ContextValue = { language: Languages; open: boolean; setOpen: React.Dispatch>; route: string; setRoute: React.Dispatch>; errorMessage: Error; connectorId: string; setConnectorId: React.Dispatch>; connectors: Web3Client[]; connect: (id: string) => Promise; account: string | undefined; chainId: number | undefined; chain: Chain | undefined; isConnected: boolean; isDisconnected: boolean; disconnect: () => void; client: Web3Client | undefined; switchChain: (chain: Chain) => Promise; isUnsupported: boolean; web3Auth: boolean; options: Web3ConnectOption; }; type Error = string | React.ReactNode | null; export declare const Web3Context: React.Context; export type Web3ConnectOption = { language?: Languages; theme?: 'dark' | 'light' | 'auto'; connectors?: Web3Client[]; enforceSupportedChains?: boolean; }; type Web3ConnectProviderProps = { options: Web3ConnectOption; }; declare const Web3Provider: FC>; export declare const useWeb3Context: () => Web3ContextValue; export declare const routes: { ONBOARDING: string; ABOUT: string; CONNECTORS: string; MOBILECONNECTORS: string; CONNECT: string; DOWNLOAD: string; PROFILE: string; SWITCHNETWORKS: string; SIGNIN: string; }; export default Web3Provider;