import React from 'react'; export * from './sequence-registry-context.js'; import { type SequenceManagerActions, type SequenceNodePath } from './sequence-registry-context.js'; import type { CanUpdateSequencePropStatus, DragOverrideValue, GetDragOverrides, GetEffectDragOverrides, PropStatuses } from './use-schema.js'; import type { SourceNumericValue } from './use-schema.js'; import type { VideoConfigValues } from './video-config.js'; export type VisualModePropStatuses = { propStatuses: PropStatuses; }; export type VisualModePropStatusesRef = { current: PropStatuses; }; export type VisualModeDragOverrides = { getDragOverrides: GetDragOverrides; getEffectDragOverrides: GetEffectDragOverrides; }; type DragOverridesSubscription = { manager: SequenceManagerActions; subscribe: (key: string | null, listener: () => void) => () => void; getSnapshot: (key: string | null) => Record; subscribeEffects: (key: string | null, listener: () => void) => () => void; getEffectSnapshot: (key: string | null) => Record>; }; export declare const VisualModeDragOverridesSubscriptionContext: React.Context; export type SequencePropsStatusRemapping = { previousNodePath: SequencePropsSubscriptionKey; nodePath: SequencePropsSubscriptionKey | null; result: CanUpdateSequencePropsResponse | null; }; export type VisualModeSetters = { setDragOverrides: (nodePath: SequencePropsSubscriptionKey, key: string, value: DragOverrideValue) => void; updateDragOverrides: (nodePath: SequencePropsSubscriptionKey, update: (current: Readonly>) => Readonly>) => void; updateDragOverridesBatch: (updates: readonly { readonly nodePath: SequencePropsSubscriptionKey; readonly update: (current: Readonly>) => Readonly>; }[]) => void; remapDragOverrideFields: (remappings: readonly { readonly previousNodePath: SequencePropsSubscriptionKey; readonly nodePath: SequencePropsSubscriptionKey | null; readonly fields: Readonly>; }[]) => void; clearDragOverrides: (nodePath: SequencePropsSubscriptionKey) => void; setEffectDragOverrides: (nodePath: SequencePropsSubscriptionKey, effectIndex: number, key: string, value: DragOverrideValue) => void; updateEffectDragOverridesBatch: (updates: readonly { readonly nodePath: SequencePropsSubscriptionKey; readonly effectIndex: number; readonly update: (current: Readonly>) => Readonly>; }[]) => void; remapEffectDragOverrideFields: (remappings: readonly { readonly previousNodePath: SequencePropsSubscriptionKey; readonly nodePath: SequencePropsSubscriptionKey | null; readonly effectIndex: number; readonly fields: Readonly>; }[]) => void; clearEffectDragOverrides: (nodePath: SequencePropsSubscriptionKey, effectIndex: number) => void; setPropStatuses: (nodePath: SequencePropsSubscriptionKey, values: (prev: CanUpdateSequencePropsResponse) => CanUpdateSequencePropsResponse) => void; setPropStatusesBatch: (updates: readonly { readonly nodePath: SequencePropsSubscriptionKey; readonly update: (previous: CanUpdateSequencePropsResponse) => CanUpdateSequencePropsResponse; }[]) => void; remapPropStatuses: (remappings: readonly SequencePropsStatusRemapping[]) => void; }; export type VisualModeBatchSetters = { setDragOverridesBatch: (overrides: readonly { readonly nodePath: SequencePropsSubscriptionKey; readonly key: string; readonly value: DragOverrideValue; }[]) => void; setEffectDragOverridesBatch: (overrides: readonly { readonly nodePath: SequencePropsSubscriptionKey; readonly effectIndex: number; readonly key: string; readonly value: DragOverrideValue; }[]) => void; }; export type CanUpdateEffectPropsResponseTrue = { canUpdate: true; callee: string; importPath: string | null; effectIndex: number; props: Record>; }; export type CannotUpdateEffectReason = 'not-found' | 'computed' | 'not-call-expression'; export type CannotUpdateSequenceReason = 'not-found' | 'error'; export type CanUpdateEffectPropsResponseFalse = { canUpdate: false; effectIndex: number; reason: CannotUpdateEffectReason; }; export type CanUpdateEffectPropsResponse = CanUpdateEffectPropsResponseTrue | CanUpdateEffectPropsResponseFalse; export type CanUpdateSequencePropsResponseTrue = { canUpdate: true; sourceLocation?: { line: number; column: number; } | null; props: Record>; effects: CanUpdateEffectPropsResponse[]; /** Source ranges also include interpolations outside the editable schema. */ durationDependentKeyframes: { readonly scope: SequenceNodePath; readonly inputRanges: readonly (readonly SourceNumericValue[] | null)[]; } | null; }; export type CanUpdateSequencePropsResponseFalse = { canUpdate: false; reason: CannotUpdateSequenceReason; }; export type CanUpdateSequencePropsResponse = CanUpdateSequencePropsResponseTrue | CanUpdateSequencePropsResponseFalse; export declare const makeSequencePropsSubscriptionKey: (key: SequencePropsSubscriptionKey) => string; export declare const VisualModePropStatusesContext: React.Context; export declare const VisualModePropStatusesRefContext: React.Context; export type VisualModePropStatusesSubscription = { subscribe: (key: string | null, listener: () => void) => () => void; getSnapshot: (key: string | null) => CanUpdateSequencePropsResponse | null; }; export declare const VisualModePropStatusesSubscriptionContext: React.Context; export declare const VisualModeDragOverridesContext: React.Context; export declare const VisualModeDragOverridesRefContext: React.Context>; export declare const useDragOverridesForNodePath: (nodePath: SequencePropsSubscriptionKey | null) => Record; export declare const usePropStatusForNodePath: (nodePath: SequencePropsSubscriptionKey | null) => CanUpdateSequencePropsResponse | null; export declare const useActiveFromDragOverrideKeys: () => ReadonlySet; export declare const useEffectDragOverridesForNodePath: (nodePath: SequencePropsSubscriptionKey | null) => Record>; export declare const VisualModeSettersContext: React.Context; export declare const VisualModeBatchSettersContext: React.Context; export type SequencePropsSubscriptionKey = { absolutePath: string; nodePath: SequenceNodePath; sequenceKeys: string[]; effectKeys: string[][]; /** Evaluation context of a rendered instance. Never part of source identity. */ videoConfigValues: VideoConfigValues | null; }; export type { VideoConfigValues } from './video-config.js'; export declare const SequenceManagerProvider: React.FC<{ readonly children: React.ReactNode; }>;