import Editable from './components/Editable'; import { ActionsTypes, Actions } from './actions'; import { Selectors } from './selector'; import PluginService from './service/plugin'; import { ContentPlugin, LayoutPlugin } from './service/plugin/classes'; import { EditableType, NativeFactory } from './types/editable'; import { reducer } from './reducer'; import { Store, Middleware } from 'redux'; import { RootState } from './types/state'; import lazyLoad from './helper/lazyLoad'; import { Plugins, ContentPluginConfig } from './service/plugin/classes'; import { shouldPureComponentUpdate } from './helper/shouldComponentUpdate'; export { shouldPureComponentUpdate }; import i18n from './service/i18n'; import DragDropContext from './components/DragDropContext'; export { Plugins, NativeFactory, Actions, Selectors, RootState, i18n, DragDropContext }; 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" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState">[]) => void; addLayoutPlugin: (config: Pick, "text" | "createInitialChildren" | "Component" | "name" | "version" | "IconComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState">) => void; removeLayoutPlugin: (name: string) => void; setContentPlugins: (plugins?: Pick, "text" | "Component" | "name" | "version" | "IconComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState" | "allowInlineNeighbours" | "isInlineable">[]) => void; addContentPlugin: (config: Pick, "text" | "Component" | "name" | "version" | "IconComponent" | "serialize" | "unserialize" | "description" | "handleRemoveHotKey" | "handleFocusNextHotKey" | "handleFocusPreviousHotKey" | "handleFocus" | "handleBlur" | "reducer" | "migrations" | "createInitialState" | "allowInlineNeighbours" | "isInlineable">) => void; removeContentPlugin: (name: string) => void; } export { PluginService, ContentPlugin, LayoutPlugin, Editable, Editor, reducer, lazyLoad }; export declare const createEmptyState: () => EditableType; export default Editor; //# sourceMappingURL=index.d.ts.map