import type { IContainer, IEvent, IEventReceptor, IMessageMeta, IObservable, ISagaConstructor, ISagaFactory } from './interfaces/index.ts'; /** * Listens to Saga events, * creates new saga or restores it from event store, * applies new events * and passes command(s) to command bus */ export declare class SagaEventHandler implements IEventReceptor { #private; constructor(options: Pick & { sagaType?: ISagaConstructor; sagaFactory?: ISagaFactory; sagaDescriptor?: string; queueName?: string; startsWith?: string[]; handles?: string[]; }); /** Overrides observer subscribe method */ subscribe(eventStore: IObservable): void; /** Handle saga event */ handle(event: IEvent, meta?: IMessageMeta): Promise; }