import { CanvasInternals, type CanvasOutlineCrop, type CanvasOutlineLayoutTarget, type CanvasOutlineTranslateDragState, type CanvasOutlineTranslatePropStatus, type CanvasOutlineTranslateSession, type CanvasOutlineTranslateTarget, type CanvasSelectableOutline } from '@remotion/sdk'; import { type CanUpdateSequencePropStatus, type CanUpdateSequencePropStatusKeyframed, type CanUpdateSequencePropStatusStatic, type InteractivitySchema, type InteractivitySchemaField, type SequencePropsSubscriptionKey } from 'remotion'; import type { ComboboxValue } from './NewComposition/ComboBox'; import type { KeyframeSourceFrame } from './Timeline/get-timeline-keyframes'; export type SelectedOutlineContextMenuOpenResult = false | readonly ComboboxValue[]; export type SelectedOutlineContextMenuOpenHandler = () => SelectedOutlineContextMenuOpenResult | Promise; export type SelectedOutlineLayoutTarget = CanvasOutlineLayoutTarget & { readonly selectedForCrop: boolean; readonly selectedForRotation: boolean; readonly selectedForTransformOrigin: boolean; readonly selectedForUvHandles: boolean; readonly transformOriginValue: string; readonly crop: CanvasOutlineCrop; }; export type SelectedOutlineTarget = SelectedOutlineLayoutTarget & { readonly canCrop: boolean; readonly pathDrag: SelectedOutlinePathDragTarget | null; readonly cropDrag: SelectedOutlineCropDragTarget | null; readonly translation: SelectedOutlineTranslation; readonly scaleDrag: SelectedOutlineScaleDragTarget | null; readonly rotationDrag: SelectedOutlineRotationDragTarget | null; readonly transformOriginDrag: SelectedOutlineTransformOriginDragTarget | null; }; export type SelectedOutlinePathDragTarget = { readonly clientId: string; readonly nodePath: SequencePropsSubscriptionKey; readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly schema: InteractivitySchema; readonly sourceFrame: KeyframeSourceFrame; }; export declare const cropFieldKeys: { readonly left: 'cropLeft'; readonly right: 'cropRight'; readonly top: 'cropTop'; readonly bottom: 'cropBottom'; }; export type SelectedOutlineCropEdge = keyof typeof cropFieldKeys; export type SelectedOutlineCropFieldKey = (typeof cropFieldKeys)[SelectedOutlineCropEdge]; export declare const canEditSelectedOutlineCrop: ({ schema, propStatuses, }: { readonly schema: InteractivitySchema | null; readonly propStatuses: Record | undefined; }) => boolean; export type SelectedOutlineCropHandle = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'right' | 'bottom' | 'left'; type CropNumberFieldSchema = Extract; export type SelectedOutlineCropField = { readonly defaultValue: number | null | undefined; readonly fieldSchema: CropNumberFieldSchema; readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly value: number; }; export type SelectedOutlineCropDragTarget = { readonly clientId: string; readonly fields: Record; readonly nodePath: SequencePropsSubscriptionKey; readonly schema: InteractivitySchema; readonly sourceFrame: KeyframeSourceFrame; readonly transformOrigin: { readonly defaultValue: string | undefined; readonly propStatus: CanUpdateSequencePropStatus; readonly value: string; } | null; }; export type SelectedOutlineDragTarget = CanvasOutlineTranslateTarget & { readonly propStatus: CanvasOutlineTranslatePropStatus; readonly clientId: string; }; export type SelectedOutlineTranslation = { readonly type: 'not-connected'; } | { readonly type: 'interactivity-disabled'; } | { readonly type: 'no-translate-control'; } | { readonly type: 'loading'; } | { readonly type: 'computed'; } | { readonly type: 'unsupported-keyframes'; } | { readonly type: 'editable'; readonly target: SelectedOutlineDragTarget; }; export type SelectedOutlineSelection = { readonly type: 'empty'; } | { readonly type: 'guides-only'; } | { readonly type: 'fullscreen'; } | { readonly type: 'selection-disabled'; } | { readonly type: 'preview-unavailable'; } | { readonly type: 'outlines-hidden'; } | { readonly type: 'non-visual'; } | { readonly type: 'visual'; readonly targets: readonly SelectedOutlineTarget[]; }; export declare const getEditableOutlineDragTargets: (targets: readonly SelectedOutlineTarget[]) => SelectedOutlineDragTarget[]; export type SelectedOutlineTransformOriginDragTarget = { readonly clientId: string; readonly keyframeDisplayOffset: number; readonly keyframePlaybackRate: number; readonly nodePath: SequencePropsSubscriptionKey; readonly originDefault: string | undefined; readonly originPropStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly originValue: string; readonly rotateValue: string; readonly scaleValue: number | string; readonly schema: InteractivitySchema; readonly sourceFrame: KeyframeSourceFrame; readonly translateDefault: string | undefined; readonly translatePropStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly translateValue: string; }; export type ScaleFieldSchema = Extract; export type RotationFieldSchema = Extract; export type SelectedOutlineScaleDragTarget = { readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly clientId: string; readonly fieldDefault: number | string | undefined; readonly fieldSchema: ScaleFieldSchema; readonly keyframeDisplayOffset: number; readonly keyframePlaybackRate: number; readonly linked: boolean; readonly nodePath: SequencePropsSubscriptionKey; readonly schema: InteractivitySchema; }; export type SelectedOutlineRotationDragTarget = { readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly clientId: string; readonly fieldDefault: string | undefined; readonly fieldSchema: RotationFieldSchema; readonly keyframeDisplayOffset: number; readonly keyframePlaybackRate: number; readonly nodePath: SequencePropsSubscriptionKey; readonly schema: InteractivitySchema; readonly transform3DMode: boolean; readonly transformOriginValue: string; }; export type SelectedOutlineDragState = CanvasOutlineTranslateDragState; export type SelectedOutlineScaleDragState = { readonly defaultValue: string | null; readonly key: string; readonly sourceFrame: number; readonly startX: number; readonly startY: number; readonly startZ: number; readonly target: SelectedOutlineScaleDragTarget; }; export type SelectedOutlineRotationDragState = { readonly defaultValue: string | null; readonly key: string; readonly sourceFrame: number; readonly startDegrees: number; readonly startRotation: readonly [number, number, number]; readonly startValue: string; readonly target: SelectedOutlineRotationDragTarget; }; export type SequenceWithSelectedOutline = CanvasSelectableOutline; export declare const { canvasTranslateFieldKey: translateFieldKey, }: typeof CanvasInternals; export declare const scaleFieldKey = "style.scale"; export declare const rotateFieldKey = "style.rotate"; export declare const transformOriginFieldKey = "style.transformOrigin"; export declare const outlineContainer: React.CSSProperties; export declare const emptyContextMenuValues: readonly ComboboxValue[]; export type SelectedOutlineKeyboardNudgeSession = CanvasOutlineTranslateSession; export {};