ethers.js/lib.commonjs/providers/subscriber-connection.d.ts
2023-02-02 22:04:33 -05:00

25 lines
658 B
TypeScript

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;
}