import type { ApiRoutes } from '@remotion/studio-shared'; import type { SequencePropsSubscriptionKey } from 'remotion'; export declare const getOptimisticEffectHistorySnapshot: () => { canUndo: boolean | null; canRedo: boolean | null; }; export declare const subscribeToOptimisticEffectHistory: (listener: () => void) => () => void; export declare const clearOptimisticEffectHistory: () => void; export declare const invalidateOptimisticEffectHistory: (file: string, resetSavedHistory: boolean) => void; export declare const clearOptimisticEffectHistoryIfIdle: () => void; export declare const captureOptimisticEffectMutation: (endpoint: keyof ApiRoutes, body: unknown) => { files: string[]; getEffectMetadata: () => { nodePath: SequencePropsSubscriptionKey; effects: string[][]; }[]; rollback: () => void; prepare: () => Promise; resolve: (rebasedBody: unknown) => unknown; acknowledge: (mutationId: string | null) => void; };