import { IHoverDelegate } from "../../../../base/browser/ui/hover/hoverDelegate.js"; import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js"; import { IHoverService } from "../../../../platform/hover/browser/hover.service.js"; /** Static configuration for a {@link CheckboxChip}. */ export interface ICheckboxChipOptions { readonly label: string; readonly ariaLabel: string; readonly hoverDelegate?: IHoverDelegate; readonly onToggle: (checked: boolean) => void; /** Extra class on the slot, for call-site-specific styling or test selectors. */ readonly slotClassName?: string; readonly markTarget?: (element: HTMLElement) => IDisposable; } /** Per-update state for a {@link CheckboxChip}. */ export interface ICheckboxChipState { readonly checked: boolean; readonly state: "enabled" | "disabled" | "hidden"; /** Shown as a tooltip while `disabled`, explaining why the choice is unavailable. */ readonly disabledReason?: string; } /** * A checkbox rendered as a chip in the new-session chip lane, matching the dropdown chips beside * it. For binary session choices that would otherwise be a two-item dropdown. * * The whole row is clickable, and a disabled chip stays focusable so keyboard users can reach * {@link ICheckboxChipState.disabledReason}. */ export declare class CheckboxChip extends Disposable { private readonly _options; private readonly _hoverService; private readonly _renderDisposables; private _slot; private _checkbox; private _state; constructor(_options: ICheckboxChipOptions, _hoverService: IHoverService); /** The rendered slot, or `undefined` before the first {@link render}. */ get element(): HTMLElement | undefined; render(container: HTMLElement): HTMLElement; update(state: ICheckboxChipState): void; private _apply; }