import { IRPC, RPC as Rpc, SubscriberItemMap } from '../types/custom-types'; import { WorkerCore } from './worker-core'; export declare type CBItem = { uid?: string; cb: Function; }; export declare const UID: () => string; export { IRPC }; export declare class Client { callbacks: Map; subscribers: SubscriberItemMap; pending: Map; verbose: boolean; log: Function; core: WorkerCore; constructor(core: WorkerCore, options?: any); cleanup(): void; addCB(key: string, cb: Function): string; req(fn: string, args: any[], rid?: string): void; call(method: string, data?: any, type?: string, uid?: string | undefined): Promise; onConnect(callback: Function): void; onDisconnect(callback: Function): void; onConnectFailure(callback: Function): void; onError(callback: Function): void; disconnect(): void; connect(): void; subscribe(subject: string, data: any, callback: Function): Rpc.SubPromise; subject2EventName(subject: string): string; unSubscribe(subject: string, uid?: string): void; } export declare class RPC implements IRPC { client: Client; cleanup(): void; constructor(options?: any); onConnect(callback: Function): void; onConnectFailure(callback: Function): void; onError(callback: Function): void; onDisconnect(callback: Function): void; disconnect(): void; connect(): Promise; unSubscribe(method: string, uid?: string): void; subscribe(method: string, data: any, callback: Rpc.callback): Rpc.SubPromise; request(method: string, data: any): Promise; subscribeChainChanged(callback: Rpc.callback): Rpc.SubPromise; subscribeBlockAdded(callback: Rpc.callback): Rpc.SubPromise; subscribeVirtualSelectedParentBlueScoreChanged(callback: Rpc.callback): Rpc.SubPromise; subscribeUtxosChanged(addresses: string[], callback: Rpc.callback): Rpc.SubPromise; unSubscribeUtxosChanged(uid?: string): void; getBlock(hash: string): Promise; getTransactionsByAddresses(startingBlockHash: string, addresses: string[]): Promise; getUtxosByAddresses(addresses: string[]): Promise; submitTransaction(tx: Rpc.SubmitTransactionRequest): Promise; getVirtualSelectedParentBlueScore(): Promise; getBlockDagInfo(): Promise; subscribeVirtualDaaScoreChanged(callback: Rpc.callback): Rpc.SubPromise; } //# sourceMappingURL=rpc.d.ts.map