import { Editor, Element, NodeEntry } from 'slate'; import { Withable } from '../typings/with'; import { InputWidgetConfig } from '../input-widget'; export interface InputBlockElement extends Element, InputWidgetConfig { type: string; } export interface InputBlock extends Withable { type: string; start(editor: Editor, config: InputWidgetConfig): void; remove(editor: Editor, entry: NodeEntry, foucs: VoidFunction): void; confirm(element: InputBlockElement, value: string, remove: VoidFunction): void; }