import * as Common from '../../core/common/common.js'; import * as Platform from '../../core/platform/platform.js'; import * as Workspace from '../../models/workspace/workspace.js'; import * as UI from '../../ui/legacy/legacy.js'; import { TabbedEditorContainer, type TabbedEditorContainerDelegate } from './TabbedEditorContainer.js'; import { UISourceCodeFrame } from './UISourceCodeFrame.js'; declare const SourcesView_base: (new (...args: any[]) => { "__#13@#events": Common.ObjectWrapper.ObjectWrapper; addEventListener(eventType: T, listener: (arg0: Common.EventTarget.EventTargetEvent) => void, thisObject?: Object | undefined): Common.EventTarget.EventDescriptor; once(eventType: T_1): Promise; removeEventListener(eventType: T_2, listener: (arg0: Common.EventTarget.EventTargetEvent) => void, thisObject?: Object | undefined): void; hasEventListeners(eventType: keyof EventTypes): boolean; dispatchEventToListeners(eventType: Platform.TypeScriptUtilities.NoUnion, ...eventData: Common.EventTarget.EventPayloadToRestParameters): void; }) & typeof UI.Widget.VBox; export declare class SourcesView extends SourcesView_base implements TabbedEditorContainerDelegate, UI.SearchableView.Searchable, UI.SearchableView.Replaceable { #private; private placeholderOptionArray; private selectedIndex; private readonly searchableViewInternal; private readonly sourceViewByUISourceCode; editorContainer: TabbedEditorContainer; private readonly historyManager; private readonly toolbarContainerElementInternal; private readonly scriptViewToolbar; private readonly bottomToolbarInternal; private toolbarChangedListener; private readonly shortcuts; private readonly focusedPlaceholderElement?; private searchView?; private searchConfig?; constructor(); private placeholderElement; private placeholderOnKeyDown; static defaultUISourceCodeScores(): Map; leftToolbar(): UI.Toolbar.Toolbar; rightToolbar(): UI.Toolbar.Toolbar; bottomToolbar(): UI.Toolbar.Toolbar; private registerShortcuts; private handleKeyDown; wasShown(): void; willHide(): void; toolbarContainerElement(): Element; searchableView(): UI.SearchableView.SearchableView; visibleView(): UI.Widget.Widget | null; currentSourceFrame(): UISourceCodeFrame | null; currentUISourceCode(): Workspace.UISourceCode.UISourceCode | null; onCloseEditorTab(): boolean; onJumpToPreviousLocation(): void; onJumpToNextLocation(): void; private uiSourceCodeAdded; private addUISourceCode; private uiSourceCodeRemoved; private removeUISourceCodes; private projectRemoved; private updateScriptViewToolbarItems; showSourceLocation(uiSourceCode: Workspace.UISourceCode.UISourceCode, location?: { lineNumber: number; columnNumber?: number; } | number, omitFocus?: boolean, omitHighlight?: boolean): void; private createSourceView; getSourceView(uiSourceCode: Workspace.UISourceCode.UISourceCode): UI.Widget.Widget | undefined; private getOrCreateSourceView; recycleUISourceCodeFrame(sourceFrame: UISourceCodeFrame, uiSourceCode: Workspace.UISourceCode.UISourceCode): void; viewForFile(uiSourceCode: Workspace.UISourceCode.UISourceCode): UI.Widget.Widget; private removeSourceFrame; private editorClosed; private editorSelected; private removeToolbarChangedListener; private updateToolbarChangedListener; onSearchCanceled(): void; performSearch(searchConfig: UI.SearchableView.SearchConfig, shouldJump: boolean, jumpBackwards?: boolean): void; jumpToNextSearchResult(): void; jumpToPreviousSearchResult(): void; supportsCaseSensitiveSearch(): boolean; supportsRegexSearch(): boolean; replaceSelectionWith(searchConfig: UI.SearchableView.SearchConfig, replacement: string): void; replaceAllWith(searchConfig: UI.SearchableView.SearchConfig, replacement: string): void; showOutlineQuickOpen(): void; showGoToLineQuickOpen(): void; save(): void; saveAll(): void; private saveSourceView; toggleBreakpointsActiveState(active: boolean): void; } export declare enum Events { EditorClosed = "EditorClosed", EditorSelected = "EditorSelected" } export interface EditorClosedEvent { uiSourceCode: Workspace.UISourceCode.UISourceCode; wasSelected: boolean; } export type EventTypes = { [Events.EditorClosed]: EditorClosedEvent; [Events.EditorSelected]: Workspace.UISourceCode.UISourceCode; }; export interface EditorAction { getOrCreateButton(sourcesView: SourcesView): UI.Toolbar.ToolbarButton; } export declare function registerEditorAction(editorAction: () => EditorAction): void; export declare function getRegisteredEditorActions(): EditorAction[]; export declare class SwitchFileActionDelegate implements UI.ActionRegistration.ActionDelegate { static instance(opts?: { forceNew: boolean | null; }): SwitchFileActionDelegate; private static nextFile; handleAction(_context: UI.Context.Context, _actionId: string): boolean; } export declare class ActionDelegate implements UI.ActionRegistration.ActionDelegate { static instance(opts?: { forceNew: boolean | null; } | undefined): ActionDelegate; handleAction(context: UI.Context.Context, actionId: string): boolean; } export {};