/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
/**
 * @module find-and-replace/findandreplaceediting
 */
import { Plugin } from 'ckeditor5/src/core.js';
import type { Item } from 'ckeditor5/src/engine.js';
import { type Collection } from 'ckeditor5/src/utils.js';
import FindAndReplaceState from './findandreplacestate.js';
import FindAndReplaceUtils from './findandreplaceutils.js';
import type { ResultType } from './findandreplace.js';
import '../theme/findandreplace.css';
/**
 * Implements the editing part for find and replace plugin. For example conversion, commands etc.
 */
export default class FindAndReplaceEditing extends Plugin {
    /**
     * @inheritDoc
     */
    static get requires(): readonly [typeof FindAndReplaceUtils];
    /**
     * @inheritDoc
     */
    static get pluginName(): "FindAndReplaceEditing";
    /**
     * The collection of currently highlighted search results.
     *
     * @private
     * @member {module:utils/collection~Collection} #_activeResults
     */
    private _activeResults?;
    /**
     * An object storing the find and replace state within a given editor instance.
     *
     * @member {module:find-and-replace/findandreplacestate~FindAndReplaceState} #state
     */
    state?: FindAndReplaceState;
    /**
     * @inheritDoc
     */
    init(): void;
    /**
     * Initiate a search.
     */
    find(callbackOrText: string | (({ item, text }: {
        item: Item;
        text: string;
    }) => Array<ResultType>)): Collection<ResultType>;
    /**
     * Stops active results from updating, and clears out the results.
     */
    stop(): void;
    /**
     * Sets up the commands.
     */
    private _defineCommands;
    /**
     * Sets up the marker downcast converters for search results highlighting.
     */
    private _defineConverters;
}
