ethers.js/lib.commonjs/providers/subscriber-connection.d.ts

25 lines
658 B
TypeScript
Raw Normal View History

2023-03-04 04:25:07 +03:00
import type { Subscriber } from "./abstract-provider.js";
import type { Provider } from "./provider.js";
/**
* @TODO
*
* @_docloc: api/providers/abstract-provider
*/
export interface ConnectionRpcProvider extends Provider {
_subscribe(param: Array<any>, processFunc: (result: any) => void): number;
_unsubscribe(filterId: number): void;
}
/**
* @TODO
*
* @_docloc: api/providers/abstract-provider
*/
export declare class BlockConnectionSubscriber implements Subscriber {
#private;
constructor(provider: ConnectionRpcProvider);
start(): void;
stop(): void;
pause(dropWhilePaused?: boolean): void;
resume(): void;
}