import type { FactoryEvent } from "./contracts.js"; /** The reconnect position acknowledged by a downstream replay consumer. */ export interface FactoryEventCursor { afterEventId: string; afterSequence: number; tick: number; } /** Return the session-scoped sequence when available, otherwise the event-log sequence. */ export declare function getFactoryEventEffectiveSequence(event: FactoryEvent): number; /** Compare canonical Factory events by replay position. */ export declare function compareFactoryEvents(left: FactoryEvent, right: FactoryEvent): number; /** Return a canonically ordered copy without mutating caller-owned events or arrays. */ export declare function orderFactoryEvents(events: readonly FactoryEvent[]): FactoryEvent[]; /** Build the reconnect cursor acknowledged at an accepted Factory event. */ export declare function createFactoryEventCursor(event: FactoryEvent): FactoryEventCursor;