starklink
Version:
> A library of react components for Follow or chat on Web3MQ
28 lines (27 loc) • 708 B
TypeScript
import { Client } from '@web3mq/client';
declare type KeyPairsType = {
PrivateKey: string;
PublicKey: string;
userid: string;
address: string;
};
declare type MainKeyPairstype = {
publicKey: string;
privateKey: string;
walletAddress: string;
};
declare const useLogin: () => {
mainKeys: MainKeyPairstype | null;
keys: KeyPairsType | null;
fastestUrl: string | null;
init: () => Promise<void>;
getAccount: () => Promise<{
address: string;
userid: string;
userExist: boolean;
}>;
logout: () => void;
handleLoginEvent: (eventData: any) => void;
Client: typeof Client;
};
export default useLogin;