import { DebouncedFunc } from 'lodash-es'; import { Editor, Point, Range } from 'slate'; export type Action = { at?: Point | Range; run: () => void; }; export type CreateAndroidInputManagerOptions = { editor: Editor; scheduleOnDOMSelectionChange: DebouncedFunc<() => void>; onDOMSelectionChange: DebouncedFunc<() => void>; }; export declare const EDITOR_TO_FLUSH_DEFERRED_DIFFS: WeakMap void>; export type AndroidInputManager = { flush: () => void; flushDeferredDiffs: () => void; scheduleFlush: () => void; hasPendingDiffs: () => boolean; hasPendingAction: () => boolean; hasPendingChanges: () => boolean; isFlushing: () => boolean | "action"; handleUserSelect: (range: Range | null) => void; handleCompositionEnd: (event: CompositionEvent) => void; handleCompositionStart: (event: CompositionEvent) => void; handleDOMBeforeInput: (event: InputEvent) => void; handleKeyDown: (event: KeyboardEvent) => void; handleDomMutations: (mutations: MutationRecord[]) => void; handleInput: () => void; }; export declare function createAndroidInputManager({ editor, scheduleOnDOMSelectionChange, onDOMSelectionChange, }: CreateAndroidInputManagerOptions): AndroidInputManager;