import type { EffectDefinition } from './effects/effect-types.js'; import type { SequencePropsSubscriptionKey } from './SequenceManager.js'; type Entry = { nodePath: SequencePropsSubscriptionKey; effectIndices: readonly number[]; definitions: readonly EffectDefinition[]; sourceChanged: boolean; }; declare const matches: (entry: Entry, definitions: readonly EffectDefinition[]) => boolean; declare const remove: (entry: Entry) => void; export declare const OptimisticEffectDeletion: { batch: (run: () => T) => T; clear: () => void; begin: ({ nodePath, effectIndices, definitions, }: { nodePath: SequencePropsSubscriptionKey; effectIndices: readonly number[]; definitions: readonly EffectDefinition[]; }) => Entry | null; remove: typeof remove; acknowledge: (entry: Entry) => void; get: (nodePath: SequencePropsSubscriptionKey) => Entry | null; getSnapshot: () => readonly Entry[]; subscribe: (listener: () => void) => () => void; subscribeToNode: (nodePath: SequencePropsSubscriptionKey, listener: () => void) => () => void; matches: typeof matches; reconcile: (nodePath: SequencePropsSubscriptionKey | null, definitions: readonly EffectDefinition[] | null) => void; remap: (remappings: readonly { entry: Entry; nodePath: SequencePropsSubscriptionKey | null; }[]) => void; }; export declare const useOptimisticEffectDeletion: (nodePath: SequencePropsSubscriptionKey | null) => Entry | null; export {};