import Editable from './components/Editable'; import { ActionsTypes } from './actions'; import PluginService from './service/plugin'; import { EditableType } from './types/editable'; import { oryReducer } from './reducer'; import { Store, Middleware } from 'redux'; import { RootState } from './types/state'; import { Plugins, ContentPluginConfig } from './service/plugin/classes'; export interface EditorProps { plugins?: Plugins; middleware?: []; editables?: EditableType[]; defaultPlugin?: ContentPluginConfig; dragDropBackend?: any; store?: Store; } /** * Editor is the core interface for dealing with the editor. */ declare class Editor { store: Store; plugins: PluginService; middleware: Middleware[]; dragDropContext: any; defaultPlugin: ContentPluginConfig; trigger: ActionsTypes; query: {}; constructor({ plugins, middleware, editables, defaultPlugin, dragDropBackend, store, }?: EditorProps); refreshEditables: () => void; setLayoutPlugins: (plugins?: Pick, "text" | "createInitialChildren" | "Component" | "name" | "version" | "IconComponent" | "StaticComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState">[]) => void; addLayoutPlugin: (config: Pick, "text" | "createInitialChildren" | "Component" | "name" | "version" | "IconComponent" | "StaticComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState">) => void; removeLayoutPlugin: (name: string) => void; setContentPlugins: (plugins?: Pick, "text" | "Component" | "name" | "version" | "IconComponent" | "StaticComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState" | "allowInlineNeighbours" | "isInlineable">[]) => void; addContentPlugin: (config: Pick, "text" | "Component" | "name" | "version" | "IconComponent" | "StaticComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState" | "allowInlineNeighbours" | "isInlineable">) => void; removeContentPlugin: (name: string) => void; } export { PluginService, Editable, Editor, oryReducer }; export declare const createEmptyState: () => EditableType; export default Editor; //# sourceMappingURL=index.d.ts.map