import { PropsWithChildren } from 'react'; import { ROOTClient } from '@rootlabs/client'; import { WalletType } from '../libs/types'; declare type ROOTTheme = 'light' | 'dark'; interface LoginResult { result: boolean; needRegister: boolean; identifier?: string; } interface ROOTContext { account?: string; client: ROOTClient; didname?: string; ready?: boolean; theme: ROOTTheme; identifier?: string; chainId: number; connect: () => void; login: () => Promise; register: (didname: string) => Promise; logout: () => void; checkLogin: () => Promise; eagerConnect: () => void; disconnect: () => void; selectWallet: (wallet: WalletType) => Promise; } export declare const ROOTProvider: (props: PropsWithChildren<{ endpoint: string; theme?: ROOTTheme; silent?: boolean; }>) => JSX.Element; export declare function useROOT(): ROOTContext; export {};