import type { MaybePromise, RxCollection, RxDocument } from '../../types'; export type RxPipelineHandler = ( docs: RxDocument[] ) => MaybePromise; export type RxPipelineOptions = { /** * The identifier of the pipeline. Used when * metadata of the pipeline is stored. Changing the identifier. */ identifier: string; destination: RxCollection; handler: RxPipelineHandler; waitForLeadership?: boolean; batchSize?: number; } export type CheckpointDocData = { checkpoint: CheckpointType; lastDocTime: number; };