export interface UserInfo {
    token: string;
    avatarUrl: string;
    nickname: string;
    username: string;
}
export declare class GlobalKit {
    static reloadUserInfo(token: string): Promise<void>;
    static backIfLogged(): void;
    static isLogged(userInfo?: UserInfo): boolean;
    static getUserInfo(isGoPage?: boolean): UserInfo;
    static setUserInfo(userInfo: UserInfo): UserInfo;
    static login(force: boolean, { complete, success }: {
        complete?: () => void;
        success?: (userInfo: any) => void;
    }): void;
    static userInfoReadyCallback: (cb: any) => any;
}
