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;
|
|
|
|
}
|
2023-04-27 21:19:55 +09:00
|
|
|
//# sourceMappingURL=subscriber-connection.d.ts.map
|