import type { Artifact, ArtifactFactory, CommittedEventMetadata, Message, Messages, Snapshot, State } from "../types"; /** * Generic message handler * @param factory the artifact factory * @param artifact the message handling artifact * @param id the reducible id (aggregate:stream or processmanager:actor) * @param callback the message handling callback * @param metadata the message metadata * @returns reduced snapshots of new events when artifact is reducible */ export default function message(factory: ArtifactFactory, artifact: Artifact, id: { stream?: string; actor?: string; }, callback: (snapshot: Snapshot) => Promise[]>, metadata: CommittedEventMetadata): Promise[]>; //# sourceMappingURL=message.d.ts.map