import type { LogLevel } from '@remotion/renderer'; import { type InsertElementRequest, type InsertElementResponse } from '@remotion/studio-shared'; export type InstallElementOptions = InsertElementRequest & { readonly remotionRoot: string; readonly entryPoint: string; readonly publicDir: string; readonly binariesDirectory: string | null; readonly logLevel: LogLevel; /** * Install the Element's missing npm dependencies with the project's package * manager before writing files. Remotion Studio installs them from the * browser beforehand and passes `false`. */ readonly installDependencies: boolean; readonly packageManager: string | null; /** * Whether the installation runs inside a Remotion Studio server. If so, * files are written through the Studio file watchers and the installation is * pushed onto the undo stack. */ readonly studio: boolean; }; /** * Performs a complete Element installation from a validated Element payload: * downloads its assets into the public directory, installs its dependencies, * writes `.element.tsx` next to the target composition and inserts the * Element into the composition (or a new composition, or a caption target). */ export declare const installElement: ({ compositionFile, compositionId, captionTarget, element, installationName, expectedFileState, from, position, overwriteExisting, undoRedoNavigation, newComposition, entryPoint, remotionRoot, logLevel, publicDir, binariesDirectory, installDependencies, packageManager, studio, }: InstallElementOptions) => Promise;