import { IKeyboardEvent } from "../../keyboardEvent.js"; import { IMouseEvent } from "../../mouseEvent.js"; import { IToggleStyles, Toggle } from "../toggle/toggle.js"; import { IContextViewProvider } from "../contextview/contextview.js"; import { CaseSensitiveToggle, RegexToggle, WholeWordsToggle } from "./findInputToggles.js"; import { HistoryInputBox, IInputBoxStyles, IInputValidator, IMessage as InputBoxMessage } from "../inputbox/inputBox.js"; import { Widget } from "../widget.js"; import { Event } from "../../../common/event.js"; import { IAction } from "../../../common/actions.js"; import type { IActionViewItemProvider } from "../actionbar/actionbar.js"; import { IHistory } from "../../../common/history.js"; import type { IHoverLifecycleOptions } from "../hover/hover.js"; export interface IFindInputOptions { readonly placeholder?: string; readonly width?: number; readonly validation?: IInputValidator; readonly label: string; readonly flexibleHeight?: boolean; readonly flexibleWidth?: boolean; readonly flexibleMaxHeight?: number; readonly showCommonFindToggles?: boolean; readonly appendCaseSensitiveLabel?: string; readonly appendWholeWordsLabel?: string; readonly appendRegexLabel?: string; readonly additionalToggles?: Toggle[]; readonly actions?: ReadonlyArray; readonly actionViewItemProvider?: IActionViewItemProvider; readonly showHistoryHint?: () => boolean; readonly toggleStyles: IToggleStyles; readonly inputBoxStyles: IInputBoxStyles; readonly history?: IHistory; readonly hoverLifecycleOptions?: IHoverLifecycleOptions; readonly hideHoverOnValueChange?: boolean; } export declare class FindInput extends Widget { static readonly OPTION_CHANGE: string; private placeholder; private validation?; private label; private readonly showCommonFindToggles; private fixFocusOnOptionClickEnabled; private imeSessionInProgress; private readonly additionalTogglesDisposables; protected readonly controls: HTMLDivElement; protected readonly regex?: RegexToggle; protected readonly wholeWords?: WholeWordsToggle; protected readonly caseSensitive?: CaseSensitiveToggle; protected additionalToggles: Toggle[]; readonly domNode: HTMLElement; readonly inputBox: HistoryInputBox; private readonly _onDidOptionChange; get onDidOptionChange(): Event; private readonly _onKeyDown; get onKeyDown(): Event; private readonly _onMouseDown; get onMouseDown(): Event; private readonly _onInput; get onInput(): Event; private readonly _onKeyUp; get onKeyUp(): Event; private _onCaseSensitiveKeyDown; get onCaseSensitiveKeyDown(): Event; private _onRegexKeyDown; get onRegexKeyDown(): Event; constructor(parent: HTMLElement | null, contextViewProvider: IContextViewProvider | undefined, options: IFindInputOptions); get isImeSessionInProgress(): boolean; get onDidChange(): Event; layout(style: { collapsedFindWidget: boolean; narrowFindWidget: boolean; reducedFindWidget: boolean; }): void; enable(): void; disable(): void; setFocusInputOnOptionClick(value: boolean): void; setEnabled(enabled: boolean): void; setAdditionalToggles(toggles: Toggle[] | undefined): void; setActions(actions: ReadonlyArray | undefined, actionViewItemProvider?: IActionViewItemProvider): void; private updateInputBoxPadding; clear(): void; getValue(): string; setValue(value: string): void; onSearchSubmit(): void; select(): void; focus(): void; getCaseSensitive(): boolean; setCaseSensitive(value: boolean): void; getWholeWords(): boolean; setWholeWords(value: boolean): void; getRegex(): boolean; setRegex(value: boolean): void; focusOnCaseSensitive(): void; focusOnRegex(): void; private _lastHighlightFindOptions; highlightFindOptions(): void; validate(): void; showMessage(message: InputBoxMessage): void; clearMessage(): void; private clearValidation; }