import React from 'react'; import type { _InternalTypes, SerializedJSONWithCustomFields } from 'remotion'; import type { RenderModalWarning, TypeCanSaveState } from './get-render-modal-warnings'; import { type SchemaErrorMode } from './SchemaEditor/SchemaErrorMessages'; import type { ZodSafeParseResult } from './SchemaEditor/zod-schema-type'; import type { UpdaterFunction } from './SchemaEditor/ZodSwitch'; export type { RenderModalWarning }; export type DataEditorMode = 'json' | 'schema'; export type State = { str: string; value: Record; validJSON: true; zodValidation: ZodSafeParseResult; } | { str: string; validJSON: false; error: string; }; export type PropsEditType = 'input-props' | 'default-props'; export type DataEditorLayout = 'default' | 'inspector'; export declare const useDataEditorWarnings: ({ canSaveDefaultProps, defaultProps, mode, propsEditType, showCannotSaveDefaultPropsWarning, }: { readonly canSaveDefaultProps: TypeCanSaveState | null; readonly defaultProps: Record; readonly mode: DataEditorMode; readonly propsEditType: PropsEditType; readonly showCannotSaveDefaultPropsWarning: boolean; }) => { serializedJSON: SerializedJSONWithCustomFields | null; warnings: RenderModalWarning[]; }; export declare const useDataEditorWarningVisibility: () => { setShowWarning: React.Dispatch>; showWarning: boolean; }; export declare const DataEditor: React.FC<{ readonly unresolvedComposition: _InternalTypes['AnyComposition']; readonly defaultProps: Record; readonly setDefaultProps: UpdaterFunction>; readonly propsEditType: PropsEditType; readonly canSaveDefaultProps: TypeCanSaveState | null; readonly schemaErrorMode?: SchemaErrorMode; readonly layout?: DataEditorLayout; readonly mode?: DataEditorMode; readonly onModeChange?: (mode: DataEditorMode) => void; readonly hideModeControls?: boolean; readonly warnings?: RenderModalWarning[]; readonly showWarning?: boolean; readonly setShowWarning?: React.Dispatch>; readonly hideWarningButton?: boolean; }>;