import * as React from "react"; import { EmbeddableType } from "@embeddable.com/core"; export type Config = { inputs: (value: any, setter: Setter, config?: Record) => any; events: Record>; mapProps?: (_: any) => any; }; export type EmbeddableEventHandler = (value: T) => T; type Setter = (value: T) => void; export type EmbeddedEditorMeta = { name: string; label: string; type: EmbeddableType; config?: any; }; export declare function defineEditor(InnerComponent: React.ComponentType, meta: EmbeddedEditorMeta, config: Config): { (props: any): React.JSX.Element; displayName: string; }; export {};