import { ApplicationWallet, Procedure, ExecutionOptions } from '@unilogin/commons'; import UniLoginSdk from '../../api/sdk'; import { FutureWallet } from '../../api/wallet/FutureWallet'; import { DeployingWallet } from '../../api/wallet/DeployingWallet'; import { Wallet } from 'ethers'; import { DeployedWallet } from '../..'; import { Property } from 'reactive-properties'; import { WalletState } from '../models/WalletService'; import { IStorageService } from '../models/IStorageService'; import { ConnectingWallet } from '../../api/wallet/ConnectingWallet'; declare type WalletFromBackupCodes = (username: string, password: string) => Promise; export declare class WalletService { readonly sdk: UniLoginSdk; private readonly walletFromPassphrase; private readonly walletSerializer; private readonly walletStorage; private readonly _stateProperty; readonly stateProperty: Property; walletDeployed: Property; isAuthorized: Property; get state(): WalletState; private setState; constructor(sdk: UniLoginSdk, walletFromPassphrase?: WalletFromBackupCodes, storageService?: IStorageService); getDeployedWallet(): DeployedWallet; getFutureWallet(): FutureWallet; private getDeployingWallet; getConnectingWallet(): ConnectingWallet; createDeployingWallet(name: string): Promise; createFutureWallet(name: string, gasToken?: string): Promise; createWallet(name: string, gasToken?: string): Promise; initDeploy(): Promise; waitForTransactionHash(): Promise; waitToBeSuccess(): Promise; deployFutureWallet(): Promise; setFutureWallet(wallet: FutureWallet, name: string): void; setDeployed(): void; setDeploying(wallet: DeployingWallet): void; setConnecting(wallet: ConnectingWallet): void; setWallet(wallet: ApplicationWallet): void; recover(name: string, passphrase: string): Promise; initializeConnection(name: string): Promise; waitForConnection(): Promise; cancelWaitForConnection(tick?: number, timeout?: number): Promise; connect(name: string, callback: Procedure): Promise<{ unsubscribe: () => void; securityCode: number[]; }>; removeWallet(executionOptions: ExecutionOptions): Promise; disconnect(): void; saveToStorage(state: WalletState): void; loadFromStorage(): Promise; finalize(): void; getRequiredDeploymentBalance(): string; isKind(kind: string): boolean; getContractAddress(): string; } export {}; //# sourceMappingURL=WalletService.d.ts.map