import { SyntheticEvent } from "react"; import { Value } from "../../slate/editor/TEditor"; import { TEditableProps } from "../../slate/types/TEditableProps"; import { TazeEditor } from "../../types/taze/TazeEditor"; import { DOMHandlers } from "../../types/plugin/DOMHandlers"; /** * 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: , any>>(editor: TazeEditor, { editableProps, handlerKey }: { editableProps?: TEditableProps | null | undefined; handlerKey: K; }) => ((event: any) => void) | undefined; //# sourceMappingURL=pipeHandler.d.ts.map