export type ILogin = (needCheck?: boolean) => Promise<string | undefined>;
export type ICheckSessionAction = () => Promise<TaroGeneral.CallbackResult>;
export interface IAction {
    checkSessionSync: ICheckSessionAction;
    loginSync: ILogin;
    getPhoneNumber: (e: any) => Promise<{
        code: string | undefined;
        encryptedData: string;
        iv: string;
        phoneNumberCode: string;
    }>;
}
declare function useLogin(): IAction;
export default useLogin;
