import React, { Dispatch, PropsWithChildren, SetStateAction } from 'react'; import type { WalletType } from 'web3-mq'; import type { LoginEventDataType, LoginResType, RegisterResType } from '../components/LoginModal/hooks/useLogin'; export declare enum StepStringEnum { HOME = "home", VIEW_ALL = "view_all_desktop", LOGIN = "login", QR_CODE = "qr_code", SIGN_UP = "sign_up" } export declare enum SignAuditTypeEnum { GET_KEYS_FOR_LOGIN = "get_Keys_For_Login", GET_KEYS_FOR_REGISTER = "get_keys_For_Register", REGISTER = "register" } export declare type LoginContextValue = { login: (password: string, walletType?: WalletType) => Promise; register: (password: string, walletType?: WalletType) => Promise; getAccount: (walletType?: WalletType, address?: string) => Promise; showLoading: boolean; setShowLoading: Dispatch>; step: string; setStep: Dispatch>; walletType: WalletType; setWalletType: Dispatch>; styles?: Record | null; handleLoginEvent: (eventData: LoginEventDataType) => void; handleWeb3mqCallback: any; qrCodeUrl: any; userAccount: any; setMainKeys: any; loginByQrCode: any; registerByQrCode: any; }; export declare const LoginContext: React.Context; export declare const LoginProvider: ({ children, value, }: React.PropsWithChildren<{ value: LoginContextValue; }>) => JSX.Element; export declare const useLoginContext: (componentName?: string | undefined) => LoginContextValue;