import { default as React } from 'react';
import { IUserInfo, LoginInfo, User } from '@glodon-aiot/apis';
import { ApiError } from './api/apis';
interface AuthContextType {
    loading: boolean;
    loginInfo: LoginInfo | null;
    userInfo: IUserInfo | null;
    signin: () => void;
    signout: () => void;
    setLoginAdrress: (loginInfo: LoginInfo) => void;
    user: User | null;
    error?: ApiError | null;
    setUser: (user: User | null) => void;
    refresh: (newTenant: string, orgId?: string) => Promise<string>;
}
export declare const AuthContext: React.Context<AuthContextType>;
export declare function useAuth(): AuthContextType;
export {};
