/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { IJodit } from "jodit/esm/types/index"; import "./config"; import { Plugin } from "jodit/esm/core/plugin/index"; import type { AutoCompleteSource, IAutoCompleteCustomFeed, IAutoCompleteItem } from "./interface"; export declare class autocomplete extends Plugin { /** @override */ static requires: string[]; /** @override */ hasStyle: boolean; private get list(); private get popup(); private sources; /** @override */ protected afterInit(jodit: IJodit): void; private registerAutocompleteSource; private unregisterAutocompleteSource; private static isControlKey; private onKeyDown; /** * Whether the query we searched for is still anchored at the caret: the * selection is collapsed inside the editable, its start node is still in the * DOM, and the word left of the cursor still starts with `query`. Used to * discard stale async autocomplete responses (see `onKeyDown`). */ private isQueryStillAnchored; private onKeyControlDown; private onEnter; private onAutoComplete; resolveFeed(query: string, feed: AutoCompleteSource, baseSource?: IAutoCompleteCustomFeed): Promise; private openPopup; /** @override */ protected beforeDestruct(jodit: IJodit): void; }