import type { ComponentDragData } from '@remotion/studio-protocol'; import { type ElementInstallExpectedFileState, type FileType, type InsertableCompositionElement, type InsertableCompositionElementPosition, type InsertElementRequest, type InsertCompositionElementRequest, type InstallableElement } from '@remotion/studio-shared'; import type { Dimensions } from '../helpers/is-current-selected-still'; import type { CompositionDragData } from './composition-drag-data'; export type InsertElementDropPosition = { readonly centerX: number; readonly centerY: number; }; export declare const getFromForDrop: ({ durationInFrames, from, preferCompositionStart, }: { durationInFrames: number | null | undefined; from: number | null; preferCompositionStart: boolean | null; }) => number | null; type InsertableAssetElement = Extract; export declare const getAssetElement: ({ fileType, src, }: { fileType: FileType; src: string; }) => InsertableAssetElement | null; export declare const getAssetElementFromPath: (assetPath: string) => InsertableAssetElement | null; export declare const getAssetElementForDroppedFile: ({ fileType, src, }: { fileType: FileType; src: string; }) => InsertableAssetElement | null; export declare const hasSvgFile: (files: File[]) => boolean; export declare const getElementPositionForDrop: ({ dimensions, dropPosition, }: { dimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; }) => InsertableCompositionElementPosition | null; export declare const getCompositionPositionForDrop: ({ compositionDimensions, dropPosition, }: { compositionDimensions: Dimensions; dropPosition: InsertElementDropPosition | null; }) => InsertableCompositionElementPosition | null; export declare const getAssetPositionForDrop: ({ assetDimensions, destinationDimensions, dropPosition, }: { assetDimensions: Dimensions | null; destinationDimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; }) => InsertableCompositionElementPosition | null; export declare const getComponentDimensions: (component: ComponentDragData['component']) => Dimensions | null; export declare const getDurationInFrames: ({ durationInSeconds, fps, }: { durationInSeconds: number | null; fps: number; }) => number | null; export declare const pickFilesToImport: ({ multiple, accept, }?: { readonly multiple?: boolean; readonly accept: string | null; }) => Promise; export type AssetInsertion = typeof insertCompositionElement; export declare const insertCompositionElement: ({ track, compositionFile, compositionId, element, from, }: { compositionFile: string; compositionId: string; element: InsertableCompositionElement; from: number | null; track: InsertCompositionElementRequest['track']; }) => Promise; export declare const importAssets: ({ insert, compositionFile, compositionId, destinationDimensions, dropPosition, files, fps, from, preferCompositionStart, svgImportMode, }: { insert: AssetInsertion | null; compositionFile: string; compositionId: string; destinationDimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; files: File[]; fps: number; from: number | null; preferCompositionStart: boolean | null; svgImportMode: 'image' | 'inline'; }) => Promise; export declare const importFigmaClipboard: ({ compositionFile, compositionId, destinationDimensions, dropPosition, html, }: { compositionFile: string; compositionId: string; destinationDimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; html: string; }) => Promise; export declare const insertSvgMarkup: ({ compositionFile, compositionId, destinationDimensions, dropPosition, markup, }: { compositionFile: string; compositionId: string; destinationDimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; markup: string; }) => Promise; export declare const importRemoteAsset: ({ insert, compositionFile, compositionId, destinationDimensions, dropPosition, fps, from, preferCompositionStart, url, }: { insert: AssetInsertion | null; compositionFile: string; compositionId: string; destinationDimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; fps: number; from: number | null; preferCompositionStart: boolean | null; url: string; }) => Promise; export declare const insertRemoteAudio: ({ insert, compositionFile, compositionId, fps, from, preferCompositionStart, url, }: { insert: AssetInsertion | null; compositionFile: string; compositionId: string; fps: number; from: number | null; preferCompositionStart: boolean | null; url: string; }) => Promise; export declare const insertExistingAssets: ({ insert, assetPaths, compositionFile, compositionId, destinationDimensions, dropPosition, fps, from, preferCompositionStart, }: { insert: AssetInsertion | null; assetPaths: string[]; compositionFile: string; compositionId: string; destinationDimensions: Dimensions | null; dropPosition: InsertElementDropPosition | null; fps: number; from: number | null; preferCompositionStart: boolean | null; }) => Promise; export declare const insertComponent: ({ component, compositionFile, compositionId, dropPosition, from, preferCompositionStart, }: { component: ComponentDragData['component']; compositionFile: string; compositionId: string; dropPosition: InsertElementDropPosition | null; from: number | null; preferCompositionStart: boolean | null; }) => Promise; export declare const insertComposition: ({ composition, compositionFile, compositionId, dropPosition, from, preferCompositionStart, }: { composition: CompositionDragData; compositionFile: string; compositionId: string; dropPosition: InsertElementDropPosition | null; from: number | null; preferCompositionStart: boolean | null; }) => Promise; export declare const insertElement: ({ installationName, compositionFile, compositionId, element, expectedFileState, position, from, overwriteExisting, undoRedoNavigation, newComposition, onInstalled, }: { installationName: string | null; compositionFile: string; compositionId: string; element: InstallableElement; expectedFileState: ElementInstallExpectedFileState; position: InsertableCompositionElementPosition | null; from: number | null; overwriteExisting: boolean; undoRedoNavigation: InsertElementRequest['undoRedoNavigation']; newComposition: InsertElementRequest['newComposition']; onInstalled: (() => void) | null; }) => Promise; export {};