import { JSONRPC } from '../tools/JSON-RPC'; import { BitAccountInfo, BitAccountRecord, DasServerInfo, KeyInfo } from './BitIndexer.type'; export interface AccountIndexerResult { errno: number; errmsg: string; data: T; } export declare class BitIndexer { rpc: JSONRPC; constructor({ uri }: { uri: string; }); request(method: string, params?: any): Promise; serverInfo(): Promise; accountInfo(account: string): Promise; accountInfoById(accountId: string): Promise; accountRecords(account: string): Promise; reverseRecord(keyInfo: KeyInfo): Promise<{ account: string; }>; accountList(keyInfo: KeyInfo, role?: 'manager' | 'owner'): Promise; }