/** * Copyright (c) 2017-present, Ephox, Inc. * * This source code is licensed under the Apache 2 license found in the * LICENSE file in the root directory of this source tree. * */ import { IEventPropTypes } from './components/EditorPropTypes'; import { IAllProps } from './components/Editor'; import { Editor as TinyMCEEditor, EditorEvent } from 'tinymce'; export declare const isFunction: (x: unknown) => x is Function; declare type PropLookup = (key: K) => IAllProps[K] | undefined; export declare const configHandlers2: (handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: (lookup: PropLookup, key: K) => H, prevProps: Partial, props: Partial, boundHandlers: Record) => void; export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial, props: Partial, boundHandlers: Record) => unknown>, lookup: PropLookup) => void; export declare const uuid: (prefix: string) => string; export declare const isTextareaOrInput: (element: Element | null) => element is HTMLInputElement | HTMLTextAreaElement; export declare const mergePlugins: (initPlugins: string | string[] | undefined, inputPlugins: string | string[] | undefined) => string[]; export declare const isBeforeInputEventAvailable: () => boolean; export declare const isInDoc: (elem: Node) => boolean; export declare const setMode: (editor: TinyMCEEditor | undefined, mode: 'readonly' | 'design') => void; export {};