import { FC, ReactNode } from 'react'; import { UseEnsAuthReturn, UseEnsSignInResult, UseEnsSignOutResult, UseSubnameUpdateFunctionParams } from '@justaname.id/react'; import { JustaPlugin } from '../../plugins'; import { ChainId } from '@justaname.id/sdk'; import { JustWeb3ProviderConfig } from '../../types/config'; export interface JustWeb3ProviderProps { children: ReactNode; config: JustWeb3ProviderConfig; } export type UpdateRecordsParams = Omit; export interface JustWeb3ContextProps { handleOpenSignInDialog: (open: boolean) => void; handleUpdateRecords: (records: UpdateRecordsParams & { ens: string; }) => Promise; handleJustWeb3Config: (config: JustWeb3ProviderConfig) => void; handleOpenEnsProfile: (ens: string, chainId?: ChainId) => void; handleCloseEnsProfile: () => void; isSignInOpen: boolean; config: JustWeb3ProviderConfig; plugins: JustaPlugin[]; } export declare const JustWeb3Context: import("react").Context; export declare const JustWeb3Provider: FC; export interface useJustWeb3 { handleOpenSignInDialog: (open: boolean) => void; isSignInOpen: boolean; signIn: UseEnsSignInResult['signIn']; signOut: UseEnsSignOutResult['signOut']; status: 'pending' | 'signedIn' | 'signedOut'; isLoggedIn: boolean; isEnsAuthPending: boolean; isEnsAuthLoading: boolean; isEnsAuthFetching: boolean; refreshEnsAuth: () => void; connectedEns: UseEnsAuthReturn['connectedEns']; openEnsProfile: (ens: string, chainId?: ChainId) => void; closeEnsProfile: () => void; updateRecords: (records: Omit & { ens?: string; }) => Promise; chainId: ChainId | undefined; } export declare const useJustWeb3: () => useJustWeb3; //# sourceMappingURL=index.d.ts.map