import { AddressInterface, IdentityRestorerInterface, Mnemonic } from 'ldk'; export declare enum KeyStoreType { Encrypted = 0, Plain = 1 } export declare class IdentityRestorerFromState implements IdentityRestorerInterface { private cachedAddresses; constructor(walletState: StateWalletInterface); addressHasBeenUsed(address: string): Promise; addressesHaveBeenUsed(addresses: string[]): Promise; } export declare function stringToKeyStoreType(str: string): KeyStoreType; export interface StateInterface { state: StateObjectInterface; stateSerialized: string; path: string; set(newState: Record): void; get(): StateObjectInterface; } export interface StateObjectInterface { network: StateNetworkInterface; provider: StateProviderInterface; market: StateMarketInterface; wallet: StateWalletInterface; } export interface StateProviderInterface { selected: boolean; endpoint: string; pubkey: string; markets: Record; pairs: Array; } export interface StateMarketInterface { selected: boolean; pair: string; tickers: any; assets: any; } export interface StateNetworkInterface { selected: boolean; chain: string; explorer: string; } export interface StateWalletInterface { selected: boolean; addressesWithBlindingKey: AddressInterface[]; keystore: { type: KeyStoreType; value: string; }; } export declare const initialState: StateObjectInterface; export default class State implements StateInterface { state: StateObjectInterface; path: string; stateSerialized: string; constructor(); set(obj: Record): void; get(): StateObjectInterface; getMnemonicIdentityFromState(password?: string): Mnemonic; }