import { BitAccount } from './BitAccount'; import { RemoteTxBuilder } from './builders/RemoteTxBuilder'; import { BitNetwork, DWebProtocol } from './const'; import { BitIndexer } from './fetchers/BitIndexer'; import { KeyInfo } from './fetchers/BitIndexer.type'; import { BitSigner } from './signers/BitSigner'; import { BitPluginBase } from './types'; interface CacheProvider { get: (key: string, options?: any) => any; set: (key: string, value: any, options?: any) => any; } export interface DotBitConfig { network?: BitNetwork; cacheProvider?: CacheProvider; bitIndexer?: BitIndexer; bitBuilder?: RemoteTxBuilder; signer?: BitSigner; } export declare class DotBit { #private; network: BitNetwork; cacheProvider: CacheProvider; bitIndexer: BitIndexer; bitBuilder: RemoteTxBuilder; signer: BitSigner; plugins: BitPluginBase[]; constructor(config?: DotBitConfig); installPlugin(plugin: BitPluginBase): void; uninstallPlugin(plugin: BitPluginBase): void; private getAccount; serverInfo(): Promise; reverse(keyInfo: KeyInfo): Promise; alias(keyInfo: KeyInfo): Promise; accountsOfOwner(keyInfo: KeyInfo): Promise; accountsOfManager(keyInfo: KeyInfo): Promise; account(account: string): BitAccount; exist(account: string): Promise; accountById(accountId: string): Promise; records(account: string, key?: string): Promise; accountInfo(account: string): Promise; addresses(account: string, chain?: string): Promise; addrs(account: string, chain?: string): Promise; dwebs(account: string, key?: DWebProtocol): Promise; dweb(account: string): Promise; profiles(account: string, key?: string): Promise; avatar(account: string): Promise<{ linkage: { type: string; content: string; }[]; url: string; }>; } export {};