import type { Artifact, CommittedEventMetadata, Message, Messages, Snapshot, State, Streamable } from "../types"; /** * Commits events to artifact's stream * @param artifact the streamable/reducible artifact * @param events the new events to commit * @param snapshot last reducible snapshot (when reducible artifact) * @param metadata commit metadata * @returns reduced event snapshots (when reducible artifact) */ export declare function commit(artifact: Artifact & Streamable, events: Message[], snapshot: Snapshot, metadata: CommittedEventMetadata): Promise[]>; //# sourceMappingURL=commit.d.ts.map