import type { ReadResp as StreamsReadResp } from "../../generated/streams_pb"; import type { ReadResp as PersistentReadResp } from "../../generated/persistent_pb"; import type { EventType, EventTypeToRecordedEvent, PersistentSubscriptionToStreamResolvedEvent, ResolvedEvent } from "../types"; export type GRPCReadResp = StreamsReadResp | PersistentReadResp; export type GRPCReadEvent = StreamsReadResp.ReadEvent | PersistentReadResp.ReadEvent; export type GRPCRecordedEvent = StreamsReadResp.ReadEvent.RecordedEvent | PersistentReadResp.ReadEvent.RecordedEvent; export type ConvertGrpcEvent = (grpcEvent: GRPCEvent) => E; export declare const convertGrpcEvent: >(grpcEvent: StreamsReadResp.ReadEvent) => T; export declare const convertPersistentSubscriptionGrpcEvent: >(grpcEvent: PersistentReadResp.ReadEvent) => T; export declare const convertGrpcRecord: (grpcRecord: GRPCRecordedEvent) => EventTypeToRecordedEvent;