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

25 lines
709 B
TypeScript
Raw Permalink Normal View History

2023-03-03 18:25:07 -07: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;
}
//# sourceMappingURL=subscriber-connection.d.ts.map