import { CoinType, CustomChain, CustomWallet, WalletProtocol } from '../constant'; import { IDeviceData } from 'connect-did-sdk'; export interface WalletState { protocol?: WalletProtocol; address?: string; coinType?: CoinType; chainId?: number; walletName?: string; hardwareWalletTipsShow?: boolean; deviceData?: IDeviceData; ckbAddresses?: string[]; masterNotes?: string; masterDevice?: string; deviceList?: ICKBAddressItem[]; isTestNet?: boolean; loggedInSelectAddress?: boolean; canAddDevice?: boolean; isSwitchAddress?: boolean; iCloudPasskeySupport?: boolean; customChains?: CustomChain[]; customWallets?: CustomWallet[]; alias?: string; locale?: string; } export interface ICKBAddressItem { address: string; device?: string; notes?: string; } export declare const walletState: WalletState; export declare function getAuthorizeInfo({ detectAssets }?: { detectAssets?: boolean | undefined; }): Promise; export declare function getMastersAddress(): Promise; export declare function getDotbitAlias(): Promise; export declare function backupDeviceData(): Promise; export declare const setWalletState: ({ protocol, address, coinType, walletName, hardwareWalletTipsShow, deviceData, masterNotes, masterDevice, ckbAddresses, deviceList, isTestNet, loggedInSelectAddress, canAddDevice, isSwitchAddress, customChains, customWallets, alias, locale, }: WalletState, isSwitch?: boolean) => void; export declare const resetWalletState: () => void; export declare function useWalletState(): { walletSnap: { readonly protocol?: WalletProtocol | undefined; readonly address?: string | undefined; readonly coinType?: CoinType | undefined; readonly chainId?: number | undefined; readonly walletName?: string | undefined; readonly hardwareWalletTipsShow?: boolean | undefined; readonly deviceData?: { readonly name: string; readonly device?: string | undefined; readonly credential: { readonly authenticatorAttachment: string | null; readonly id: string; readonly rawId: string; readonly type: string; readonly clientExtensionResults: { readonly appid?: boolean | undefined; readonly credProps?: { readonly rk?: boolean | undefined; } | undefined; readonly hmacCreateSecret?: boolean | undefined; }; }; readonly publicKey: { readonly x: string; readonly y: string; }; readonly ckbAddr: string; } | undefined; readonly ckbAddresses?: readonly string[] | undefined; readonly masterNotes?: string | undefined; readonly masterDevice?: string | undefined; readonly deviceList?: readonly { readonly address: string; readonly device?: string | undefined; readonly notes?: string | undefined; }[] | undefined; readonly isTestNet?: boolean | undefined; readonly loggedInSelectAddress?: boolean | undefined; readonly canAddDevice?: boolean | undefined; readonly isSwitchAddress?: boolean | undefined; readonly iCloudPasskeySupport?: boolean | undefined; readonly customChains?: readonly CustomChain[] | undefined; readonly customWallets?: readonly CustomWallet[] | undefined; readonly alias?: string | undefined; readonly locale?: string | undefined; }; }; export declare function getWalletState(): { walletSnap: { readonly protocol?: WalletProtocol | undefined; readonly address?: string | undefined; readonly coinType?: CoinType | undefined; readonly chainId?: number | undefined; readonly walletName?: string | undefined; readonly hardwareWalletTipsShow?: boolean | undefined; readonly deviceData?: { readonly name: string; readonly device?: string | undefined; readonly credential: { readonly authenticatorAttachment: string | null; readonly id: string; readonly rawId: string; readonly type: string; readonly clientExtensionResults: { readonly appid?: boolean | undefined; readonly credProps?: { readonly rk?: boolean | undefined; } | undefined; readonly hmacCreateSecret?: boolean | undefined; }; }; readonly publicKey: { readonly x: string; readonly y: string; }; readonly ckbAddr: string; } | undefined; readonly ckbAddresses?: readonly string[] | undefined; readonly masterNotes?: string | undefined; readonly masterDevice?: string | undefined; readonly deviceList?: readonly { readonly address: string; readonly device?: string | undefined; readonly notes?: string | undefined; }[] | undefined; readonly isTestNet?: boolean | undefined; readonly loggedInSelectAddress?: boolean | undefined; readonly canAddDevice?: boolean | undefined; readonly isSwitchAddress?: boolean | undefined; readonly iCloudPasskeySupport?: boolean | undefined; readonly customChains?: readonly CustomChain[] | undefined; readonly customWallets?: readonly CustomWallet[] | undefined; readonly alias?: string | undefined; readonly locale?: string | undefined; }; };