///
import { Hex } from 'viem';
type UseWeb3AuthTokenParameters = {
message: string;
scopes: string[];
key?: string;
persist?: boolean;
authorizedAddressStorageKey?: string;
delegateXyzRights?: Hex;
jwtTokenMaxValidity?: number;
encryption?: {
encrypt: (token: string) => Promise | string;
decrypt: (encryptedToken: string) => Promise | string;
};
};
export declare const useWeb3AuthToken: ({ message, scopes, key, persist, authorizedAddressStorageKey, delegateXyzRights, jwtTokenMaxValidity, encryption, }: UseWeb3AuthTokenParameters) => {
token: string | null;
tokenData: {
walletAddress: `0x${string}`;
signerAddress: `0x${string}`;
isDelegated: boolean;
scopes: string[];
} | null;
isVerifying: boolean;
isWaiting: boolean;
isAuthenticated: boolean;
clear: () => void;
sign: (expiration: number) => Promise;
authorizedAddress: `0x${string}` | null;
setAuthorizedAddress: import("react").Dispatch>;
};
export {};