import { IKeyboardEvent } from "../../keyboardEvent.js"; import { IMouseEvent } from "../../mouseEvent.js"; import { IToggleStyles } from "../toggle/toggle.js"; import { IContextViewProvider } from "../contextview/contextview.js"; import { HistoryInputBox, IInputBoxStyles, IInputValidator, IMessage as InputBoxMessage } from "../inputbox/inputBox.js"; import { Widget } from "../widget.js"; import { Event } from "../../../common/event.js"; import { IHistory } from "../../../common/history.js"; import { type IHoverLifecycleOptions } from "../hover/hover.js"; export interface IReplaceInputOptions { readonly placeholder?: string; readonly width?: number; readonly validation?: IInputValidator; readonly label: string; readonly flexibleHeight?: boolean; readonly flexibleWidth?: boolean; readonly flexibleMaxHeight?: number; readonly hoverLifecycleOptions?: IHoverLifecycleOptions; readonly appendPreserveCaseLabel?: string; readonly history?: IHistory; readonly showHistoryHint?: () => boolean; readonly inputBoxStyles: IInputBoxStyles; readonly toggleStyles: IToggleStyles; } export declare class ReplaceInput extends Widget { private readonly _showOptionButtons; static readonly OPTION_CHANGE: string; private contextViewProvider; private placeholder; private validation?; private label; private fixFocusOnOptionClickEnabled; private preserveCase; private cachedOptionsWidth; domNode: HTMLElement; 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 _onPreserveCaseKeyDown; get onPreserveCaseKeyDown(): Event; constructor(parent: HTMLElement | null, contextViewProvider: IContextViewProvider | undefined, _showOptionButtons: boolean, options: IReplaceInputOptions); enable(): void; disable(): void; setFocusInputOnOptionClick(value: boolean): void; setEnabled(enabled: boolean): void; clear(): void; getValue(): string; setValue(value: string): void; onSearchSubmit(): void; protected applyStyles(): void; select(): void; focus(): void; getPreserveCase(): boolean; setPreserveCase(value: boolean): void; focusOnPreserve(): void; private _lastHighlightFindOptions; highlightFindOptions(): void; validate(): void; showMessage(message: InputBoxMessage): void; clearMessage(): void; private clearValidation; set width(newWidth: number); dispose(): void; }