import type { CanRevertResult, CreatedEvent, EventFlowMap, IEventStoreRepo, PreviewRevertResult, RevertResult } from '@schemeless/event-store-types'; export interface MakeRevertDeps { repo: IEventStoreRepo; eventFlowMap: EventFlowMap; storeEvents: (events: CreatedEvent[]) => Promise; } /** * Creates the revert functions for an EventStore instance. * These functions allow reverting root events and all their descendants. */ export declare const makeRevert: ({ repo, eventFlowMap, storeEvents }: MakeRevertDeps) => { canRevert: (eventId: string) => Promise; previewRevert: (eventId: string) => Promise; revert: (eventId: string) => Promise; }; export type MakeRevertResult = ReturnType;