import { CanvasInternals } from '@remotion/sdk'; import type { CanUpdateSequencePropStatusKeyframed, CanUpdateSequencePropStatusStatic, GetEffectDragOverrides, PropStatuses, InteractivitySchemaField, SequencePropsSubscriptionKey, InteractivitySchema, TSequence } from 'remotion'; import { type OutlinePoint, type SelectedOutline } from './selected-outline-geometry'; import { type KeyframeSourceFrame } from './Timeline/get-timeline-keyframes'; export declare const { getCanvasOutlinePoint: getUvHandlePosition, getCanvasOutlineUv: getUvCoordinateForPoint, }: typeof CanvasInternals; export type UvCoordinate = readonly [number, number]; type UvEllipseDimensions = { readonly width: number; readonly height: number; }; export type UvCoordinateFieldSchema = Extract; export type NumericUvEllipseFieldSchema = Extract; export type UvEllipseControlField = { readonly fieldKey: string; readonly fieldSchema: NumericUvEllipseFieldSchema; readonly fieldDefault: number | null | undefined; readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly value: number; }; export type UvEllipseControls = { readonly width: UvEllipseControlField; readonly height: UvEllipseControlField; readonly rotation: UvEllipseControlField | null; readonly innerScale: UvEllipseControlField | null; }; export type SelectedOutlineUvHandle = { readonly clientId: string; readonly propStatus: CanUpdateSequencePropStatusStatic | CanUpdateSequencePropStatusKeyframed; readonly effectIndex: number; readonly effectValues: Record; readonly ellipseControls: UvEllipseControls | null; readonly fieldDefault: UvCoordinate | undefined; readonly fieldKey: string; readonly fieldSchema: UvCoordinateFieldSchema; readonly isSelected: boolean; readonly nodePath: SequencePropsSubscriptionKey; readonly schema: InteractivitySchema; readonly sourceFrame: KeyframeSourceFrame; readonly value: UvCoordinate; }; type UvConnectionHandle = Pick & { readonly effectValues?: Record; readonly ellipseControls?: UvEllipseControls | null; }; type UvHandleConnectionLine = { readonly key: string; readonly from: OutlinePoint; readonly to: OutlinePoint; }; type UvHandleConnectionEllipse = { readonly key: string; readonly points: readonly OutlinePoint[]; }; export type UvEllipseResizeAxis = 'width' | 'height'; export type UvEllipseResizeControl = { readonly key: string; readonly axis: UvEllipseResizeAxis; readonly field: UvEllipseControlField; readonly position: OutlinePoint; readonly cursor: string; }; export type UvEllipseRotationControl = { readonly key: string; readonly field: UvEllipseControlField; readonly position: OutlinePoint; readonly cursor: string; }; export type UvEllipseStartControl = { readonly key: string; readonly field: UvEllipseControlField; readonly position: OutlinePoint; readonly cursor: string; }; export type UvEllipseInteractiveControls = { readonly handle: SelectedOutlineUvHandle; readonly center: OutlinePoint; readonly width: number; readonly height: number; readonly rotation: number; readonly resize: readonly UvEllipseResizeControl[]; readonly rotationControl: UvEllipseRotationControl | null; readonly startControl: UvEllipseStartControl | null; }; type SelectedEffectFields = { readonly allFields: boolean; readonly fieldKeys: ReadonlySet; }; export declare const tuplesEqual: (left: unknown, right: UvCoordinate) => boolean; export declare const getUvHandleConnectionLines: ({ handles, points, }: { readonly handles: readonly UvConnectionHandle[]; readonly points: SelectedOutline['points']; }) => UvHandleConnectionLine[]; export declare const getUvHandleConnectionEllipses: ({ handles, dimensions, points, }: { readonly handles: readonly UvConnectionHandle[]; readonly dimensions?: UvEllipseDimensions | null; readonly points: SelectedOutline['points']; }) => UvHandleConnectionEllipse[]; export declare const getUvEllipseInteractiveControls: ({ handles, dimensions, points, }: { readonly handles: readonly SelectedOutlineUvHandle[]; readonly dimensions?: UvEllipseDimensions | null; readonly points: SelectedOutline['points']; }) => UvEllipseInteractiveControls[]; export declare function constrainUv(value: UvCoordinate, schema: UvCoordinateFieldSchema): UvCoordinate; export declare function roundUvCoordinate(value: UvCoordinate, schema: UvCoordinateFieldSchema): UvCoordinate; export declare const roundNumericUvEllipseValue: (value: number, schema: NumericUvEllipseFieldSchema) => number; export declare const getSelectedUvHandles: ({ propStatuses, clientId, getEffectDragOverrides, nodePath, selectedEffects, sequence, sourceFrame, }: { readonly propStatuses: PropStatuses; readonly clientId: string | null; readonly getEffectDragOverrides: GetEffectDragOverrides; readonly nodePath: SequencePropsSubscriptionKey; readonly selectedEffects: Map | undefined; readonly sequence: TSequence; readonly sourceFrame: KeyframeSourceFrame; }) => SelectedOutlineUvHandle[]; export {};