import { SyntheticEvent } from 'react'; import { EditableProps } from 'slate-react/dist/components/editable'; import { DOMHandlers } from '../types/PlatePlugin/DOMHandlers'; import { PlatePlugin } from '../types/PlatePlugin/PlatePlugin'; import { SPEditor } from '../types/SPEditor'; /** * Check if an event is overrided by a handler. */ export declare const isEventHandled: >(event: EventType, handler?: ((event: EventType) => void | boolean) | undefined) => boolean; /** * Generic pipe for handlers. * - Get all the plugins handlers by `handlerKey`. * - If there is no plugin handler or editable prop handler for this key, return `undefined`. * - Return a handler calling all the plugins handlers then the prop handler. * - Any handler returning true will stop the next handlers to be called, including slate internal handler. */ export declare const pipeHandler: >(editor: SPEditor, { editableProps, handlerKey, plugins, }: { editableProps?: EditableProps | undefined; handlerKey: K; plugins?: PlatePlugin[] | undefined; }) => ((event: any) => void) | undefined; //# sourceMappingURL=pipeHandler.d.ts.map