import { QueryClient } from '@tanstack/react-query'; import React, { type ReactNode } from 'react'; import type { Chain } from '../wagmi/chains'; import type { SolanaWalletConnection } from '../interfaces/solanaWallet'; import type { Locale } from '../locales'; import { type CreateFunkitWagmiConfigParameters } from '../config/getDefaultConfig'; import { type AvatarComponent } from './AvatarContext'; import { type FunkitConfig } from './FunkitConfigContext'; import { type Theme } from './FunkitThemeProvider'; import { type ModalSizes } from './ModalSizeContext'; import { type WalletAdoptionConfig } from '../wallets/useWalletAdoption'; export declare const useThemeRootProps: () => { "data-rk": string; }; export declare const useThemeRootElement: () => Element | null; interface FunkitProviderInnerProps { initialChain?: number; id?: string; children: ReactNode; theme?: Theme; avatar?: AvatarComponent; locale?: Locale; funkitConfig: FunkitConfig; solanaWallet?: SolanaWalletConnection; debug?: boolean | undefined; sandbox?: boolean | undefined; modalSize?: ModalSizes; useStyleRefForTheme?: boolean; /** * Warning: intended for the framework-agnostic wrapper. React integrations * should share wallets via `wagmiConfig` instead. * * Adopts the host wallet with session restore disabled. Requires * `wagmiConfig` and `queryClient`. Do not change at runtime; * runtime changes are ignored. Remount the provider to change it. */ adoptWallet?: WalletAdoptionConfig; } export type FunkitWagmiConfig = Omit & { projectId: string; }; export interface FunkitProviderProps extends Omit { initialChain?: Chain | number; wagmiConfig?: FunkitWagmiConfig; queryClient?: QueryClient; solanaWallet?: SolanaWalletConnection; solanaWalletOnly?: boolean; } export declare function FunkitProvider(props: FunkitProviderProps): React.JSX.Element; export {};