import { Disposable } from "../../base/common/lifecycle.js"; import { IObservable } from "../../base/common/observable.js"; import { URI } from "../../base/common/uri.js"; import { IConfigurationService } from "../../platform/configuration/common/configuration.service.js"; import { IActiveSession } from "../services/sessions/common/sessionsManagement.js"; import { ISession } from "../services/sessions/common/session.js"; export declare const SESSIONS_LAYOUT_SCOPE_SETTING = "sessions.experimental.layoutScope"; export type ChatLayoutMode = "session-shared" | "chat-shared" | "chat"; export interface IChatLayoutOwner { readonly sessionResource: URI; readonly chatResource: URI; } export declare function chatLayoutOwnersEqual(a: IChatLayoutOwner | undefined, b: IChatLayoutOwner | undefined): boolean; export declare function getChatLayoutOwnerAfterReplacement(owner: IChatLayoutOwner, replacement: { readonly from: ISession; readonly to: ISession; }): IChatLayoutOwner; export interface IChatLayoutPresentationSnapshot { readonly mode: ChatLayoutMode; readonly active: boolean; readonly generation: number; } export declare class ChatLayoutPresentation extends Disposable { readonly configured: ChatLayoutMode; readonly enabled: boolean; private readonly _state; readonly state: IObservable; constructor(configurationService: IConfigurationService, startupDesktop: boolean, isPhoneLayout: IObservable); isCurrent(snapshot: IChatLayoutPresentationSnapshot): boolean; } export interface IChatLayoutSnapshot { readonly owner: IChatLayoutOwner | undefined; readonly presentation: IChatLayoutPresentationSnapshot; readonly generation: number; } export declare class ChatLayoutContext extends Disposable { private readonly _state; readonly state: IObservable; constructor(presentation: ChatLayoutPresentation, activeSession: IObservable); isCurrent(snapshot: IChatLayoutSnapshot): boolean; }