UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

24 lines (23 loc) 890 B
import React from 'react'; import type { _InternalTypes } from 'remotion'; import type { TypeCanSaveState } from './get-render-modal-warnings'; import type { ZodSafeParseResult } from './SchemaEditor/zod-schema-type'; import type { UpdaterFunction } from './SchemaEditor/ZodSwitch'; export type State = { str: string; value: Record<string, unknown>; validJSON: true; zodValidation: ZodSafeParseResult; } | { str: string; validJSON: false; error: string; }; export type PropsEditType = 'input-props' | 'default-props'; export declare const DataEditor: React.FC<{ readonly unresolvedComposition: _InternalTypes['AnyComposition']; readonly defaultProps: Record<string, unknown>; readonly setDefaultProps: UpdaterFunction<Record<string, unknown>>; readonly propsEditType: PropsEditType; readonly canSaveDefaultProps: TypeCanSaveState | null; }>;