import { UserInfoState } from '../context/UserContext'; import { Dispatch } from 'react'; import { EventItem } from './Storage'; export declare function refreshByStorage(e: Event | CustomEvent, groupName: string, userInfoState: UserInfoState, dispatch: Dispatch): void; export declare function initLoginStatus(groupName: string, userInfoState: UserInfoState, dispatch: Dispatch): Promise; export declare function saveUserInfoToStorage(user: any, siteName: string): void; export declare function updateUserStatusByLocalStorage(userInfoState: UserInfoState, dispatch: Dispatch): void; export declare function updateUserStatusByLoginResponse(groupName: string, res: any, dispatch: Dispatch, isRegister?: boolean): void; export declare const logout: (setUserState: Dispatch) => void;