/// import { Transform, TransformCallback, TransformOptions } from "stream"; import type { ClientReadableStream } from "@grpc/grpc-js"; import type { ReadResp } from "../../../generated/streams_pb"; import type { Filter, ReadableSubscription } from "../../types"; import { ConvertGrpcEvent } from "../../utils"; type CreateGRPCStream = () => Promise>; export declare class Subscription extends Transform implements ReadableSubscription { #private; protected convertGrpcEvent: ConvertGrpcEvent; id?: string; constructor(createGRPCStream: CreateGRPCStream, convertGrpcEvent: ConvertGrpcEvent, options: TransformOptions, checkpointReached?: Filter["checkpointReached"]); private initialize; _transform(resp: ReadResp, _encoding: string, next: TransformCallback): Promise; unsubscribe(): Promise; } export {};