import * as dom from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom"; import { ReplaceInput } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/findinput/replaceInput"; import { IInputBoxStyles, InputBox } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/inputbox/inputBox"; import { Widget } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/widget"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IContextViewService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service"; import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service"; import { IToggleStyles } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/toggle/toggle"; import { NotebookFindFilters } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findFilters"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; import { SearchFindInput } from "./searchFindInput.js"; export interface ISearchWidgetOptions { value?: string; replaceValue?: string; isRegex?: boolean; isCaseSensitive?: boolean; isWholeWords?: boolean; searchHistory?: string[]; replaceHistory?: string[]; preserveCase?: boolean; _hideReplaceToggle?: boolean; showContextToggle?: boolean; inputBoxStyles: IInputBoxStyles; toggleStyles: IToggleStyles; notebookOptions?: NotebookToggleState; } interface NotebookToggleState { isInNotebookMarkdownInput: boolean; isInNotebookMarkdownPreview: boolean; isInNotebookCellInput: boolean; isInNotebookCellOutput: boolean; } export declare class SearchWidget extends Widget { private readonly contextViewService; private readonly contextKeyService; private readonly keybindingService; private readonly clipboardServce; private readonly configurationService; private readonly accessibilityService; private readonly contextMenuService; private readonly instantiationService; private readonly editorService; private static readonly INPUT_MAX_HEIGHT; private static readonly REPLACE_ALL_DISABLED_LABEL; private static readonly REPLACE_ALL_ENABLED_LABEL; domNode: HTMLElement | undefined; searchInput: SearchFindInput | undefined; searchInputFocusTracker: dom.IFocusTracker | undefined; private searchInputBoxFocused; private replaceContainer; replaceInput: ReplaceInput | undefined; replaceInputFocusTracker: dom.IFocusTracker | undefined; private replaceInputBoxFocused; private toggleReplaceButton; private replaceAllAction; private replaceActive; private replaceActionBar; private _replaceHistoryDelayer; private ignoreGlobalFindBufferOnNextFocus; private previousGlobalFindBufferValue; private _onSearchSubmit; readonly onSearchSubmit: Event<{ triggeredOnType: boolean; delay: number; }>; private _onSearchCancel; readonly onSearchCancel: Event<{ focus: boolean; }>; private _onReplaceToggled; readonly onReplaceToggled: Event; private _onReplaceStateChange; readonly onReplaceStateChange: Event; private _onPreserveCaseChange; readonly onPreserveCaseChange: Event; private _onReplaceValueChanged; readonly onReplaceValueChanged: Event; private _onReplaceAll; readonly onReplaceAll: Event; private _onBlur; readonly onBlur: Event; private _onDidHeightChange; readonly onDidHeightChange: Event; private readonly _onDidToggleContext; readonly onDidToggleContext: Event; private showContextToggle; contextLinesInput: InputBox; private _notebookFilters; private readonly _toggleReplaceButtonListener; constructor(container: HTMLElement, options: ISearchWidgetOptions, contextViewService: IContextViewService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService, clipboardServce: IClipboardService, configurationService: IConfigurationService, accessibilityService: IAccessibilityService, contextMenuService: IContextMenuService, instantiationService: IInstantiationService, editorService: IEditorService); private _hasNotebookOpen; getNotebookFilters(): NotebookFindFilters; focus(select?: boolean, focusReplace?: boolean, suppressGlobalSearchBuffer?: boolean): void; setWidth(width: number): void; clear(): void; isReplaceShown(): boolean; isReplaceActive(): boolean; getReplaceValue(): string; toggleReplace(show?: boolean): void; getSearchHistory(): string[]; getReplaceHistory(): string[]; prependSearchHistory(history: string[]): void; prependReplaceHistory(history: string[]): void; clearHistory(): void; showNextSearchTerm(): void; showPreviousSearchTerm(): void; showNextReplaceTerm(): void; showPreviousReplaceTerm(): void; searchInputHasFocus(): boolean; replaceInputHasFocus(): boolean; focusReplaceAllAction(): void; focusRegexAction(): void; set replaceButtonVisibility(val: boolean); private render; private updateAccessibilitySupport; private renderToggleReplaceButton; private renderSearchInput; private onContextLinesChanged; setContextLines(lines: number): void; private renderReplaceInput; triggerReplaceAll(): Promise; private onToggleReplaceButton; setValue(value: string): void; setReplaceAllActionState(enabled: boolean): void; private updateReplaceActiveState; private validateSearchInput; private onSearchInputChanged; private onSearchInputKeyDown; private onCaseSensitiveKeyDown; private onRegexKeyDown; private onPreserveCaseKeyDown; private onReplaceInputKeyDown; private onReplaceActionbarKeyDown; private submitSearch; getContextLines(): number; modifyContextLines(increase: boolean): void; toggleContextLines(): void; dispose(): void; private get searchConfiguration(); } export declare function registerContributions(): void; export {};