/** * Official HugeRTE React component * Copyright (c) 2022 Ephox Corporation DBA Tiny Technologies, Inc. * Copyright (c) 2024 HugeRTE contributors * Licensed under the MIT license (https://github.com/hugerte/hugerte-react/blob/main/LICENSE.TXT) */ import { IEvents } from './Events'; import { IAllProps } from './components/Editor'; import type { Editor as HugeRTEEditor, EditorEvent } from 'hugerte'; export declare const isFunction: (x: unknown) => x is Function; 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: HugeRTEEditor, prevProps: Partial, props: Partial, boundHandlers: Record) => unknown>, lookup: PropLookup) => void; export declare const isTextareaOrInput: (element: Element | null) => element is (HTMLTextAreaElement | HTMLInputElement); export declare const mergePlugins: (initPlugins: string | string[] | undefined, inputPlugins: string | string[] | undefined) => string[]; export declare const isBeforeInputEventAvailable: () => boolean; export declare const setMode: (editor: HugeRTEEditor | undefined, mode: "readonly" | "design") => void; export {};