import { Dimension } from "../../../../../base/browser/dom.js"; import { Event } from "../../../../../base/common/event.js"; import { IDisposable } from "../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../base/common/observable.js"; import { ThemeIcon } from "../../../../../base/common/themables.js"; import { IInstantiationService, ServicesAccessor } from "../../../../../platform/instantiation/common/instantiation.js"; import { AICustomizationManagementSection } from "../../common/aiCustomizationWorkspaceService.js"; export interface IAICustomizationManagementSectionWidget extends IDisposable { layout?(dimension: Dimension): void; focus?(): void; fireItemCount?(): void; setSearchQuery?(query: string): void; setVisible?(visible: boolean): void; setCloseCustomizationEditor?(closeCustomizationEditor: () => Promise): void; getAccessibilityContent?(): string; readonly onDidChangeItemCount?: Event; } export interface IAICustomizationManagementSectionContribution { readonly id: AICustomizationManagementSection; readonly label: string; readonly icon: ThemeIcon; readonly description: string; /** At least one of these boolean settings must be enabled to show or instantiate the section. */ readonly enablementSettings?: readonly string[]; /** Instantiate while hidden so sidebar metadata such as item counts is available before first navigation. */ readonly initializeOnEditorOpen?: boolean; /** Visually separates this section from the preceding customization sections in the navigation list. */ readonly separatorBefore?: boolean; readonly supportsHarness: (harnessId: string) => boolean; /** * Describes why the section's navigation entry shows a badge, for example because the section has suggestions * to review, or `undefined` when it shows no badge. The description is the entry's hover and part of its * accessible name. The editor reads it while it is open. */ readonly getBadge?: (accessor: ServicesAccessor) => IObservable; create(instantiationService: IInstantiationService, container: HTMLElement): IAICustomizationManagementSectionWidget; } declare class AICustomizationManagementSectionRegistry { private readonly contributions; register(contribution: IAICustomizationManagementSectionContribution): IDisposable; has(id: AICustomizationManagementSection): boolean; getDefault(id: AICustomizationManagementSection): IAICustomizationManagementSectionContribution | undefined; get(id: AICustomizationManagementSection, harnessId: string): IAICustomizationManagementSectionContribution | undefined; } export declare const aiCustomizationManagementSectionRegistry: AICustomizationManagementSectionRegistry; export {};