/** Claim the next event sequence number for a workflow. */ export declare function claimNextSequence(sequenceCounters: Map, workflowId: string): number; /** Evict the oldest workflow affinity entry when the cache grows beyond its cap. */ export declare function evictOldestAffinityEntries(workerAffinity: Map, maxEntries: number): void; /** Restore an extended deadline back into the tracker when a stale heap entry expires. */ export declare function restoreExtendedDeadline(deadlineTracker: { add(entry: { operationId: string; deadline: number; }): void; }, operationId: string, deadline: number): void; /** Restore a stale heap entry when the recorded deadline is still in the future. */ export declare function restoreExtendedDeadlineIfStillActive(deadlineTracker: { add(entry: { operationId: string; deadline: number; }): void; }, operationId: string, deadline: number, now: number): boolean;