import { Button } from "../../../../base/browser/ui/button/button.js"; import { IHoverDelegate } from "../../../../base/browser/ui/hover/hoverDelegate.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; import type { ISessionOptionsIconOnlyPickers } from "./iconOnlySessionPickers.js"; /** The session options visibility the user chose, `undefined` before they chose. */ export declare function getStoredSessionOptionsExpanded(storageService: IStorageService): boolean | undefined; export declare function storeSessionOptionsExpanded(storageService: IStorageService, expanded: boolean): void; export interface ISessionOptionsRowOptions { /** Names the responsive layout, e.g. for its measurements. */ readonly user: string; readonly hoverDelegate?: IHoverDelegate; readonly screenReaderOptimized: IObservable; readonly expanded: IObservable; /** Whether a collapsed tray keeps its pickers as an icon rail rather than hiding them. */ readonly collapsedShowIcons: IObservable; /** The user showed or hid the session options with the disclosure toggle. */ setExpanded(expanded: boolean): void; /** Whether the session options hold any control; without one there is no tray to show or hide. Defaults to always. */ readonly hasDetails?: IObservable; /** Called when the tray collapses, before {@link collapsedShowIcons} is read. */ onDidCollapse?(): void; /** Called after the row's presentation changes. */ onDidChangeLayout?(): void; /** Lets the user collapse individual pickers to their icon from their context menu. */ readonly iconOnlyPickers?: ISessionOptionsIconOnlyPickers; } /** * The options row above a new-session composer: the primary pickers already in `row` (such as the * workspace), followed by the session options ({@link details}) that the composer layout * groups into a tray with a disclosure toggle. Keyboard users move through the row with the arrow keys. */ export declare class SessionOptionsRow extends Disposable { /** Collapsible session options that follow the primary pickers. */ readonly details: HTMLElement; /** Hosts the composer's repository controls in the row. */ readonly repositoryControlsHost: HTMLElement; readonly toggle: Button; private readonly _responsiveLayout; constructor(row: HTMLElement, container: HTMLElement, options: ISessionOptionsRowOptions); /** Re-measures the row so labels compact or restore, e.g. after a picker was added. */ layout(): void; }