import { type ReactiveControllerHost } from 'lit'; import { DashboardPanel } from '../panel/panel.js'; import type { DashboardFullscreenController } from './fullscreen.controller.js'; import type { DashboardPointerPresentation } from './interaction.controller.js'; import type { DashboardMetrics } from '../utils/geometry.utils.js'; import type { DashboardAction } from '../utils/intent.types.js'; import type { DashboardItem, DashboardLayout } from '../dashboard.types.js'; interface DashboardCompositionHost extends HTMLElement, ReactiveControllerHost { readonly sizing: 'fit' | 'fixed'; readonly container?: 'inset' | 'flat' | 'full'; readonly fullscreenable: boolean; readonly updateComplete: Promise; } interface DashboardCompositionDelegate { getCommittedLayout(): DashboardLayout | undefined; getLayout(): DashboardLayout | undefined; getCanonicalLayout(): DashboardLayout | undefined; getPreview(): DashboardLayout | undefined; getPointerPresentation(): DashboardPointerPresentation | undefined; getMetrics(): DashboardMetrics | undefined; getLabels(): Readonly>; isActionAllowed(panel: DashboardPanel, action: DashboardAction): boolean; readonly fullscreen: DashboardFullscreenController; measure(): void; changed(catalogue: boolean): void; } interface DashboardPresentationSnapshot { layout?: DashboardLayout; panels: WeakMap; fullscreenTargetId?: string; metrics?: DashboardMetrics; committedLayout: DashboardLayout | undefined; sizing: 'fit' | 'fixed'; width: number; height: number; } /** Presents stable panels and observes their supplied composition. */ export declare class DashboardCompositionController { #private; constructor(host: DashboardCompositionHost, delegate: DashboardCompositionDelegate); get ghostCorners(): Record; captureCorners(panel?: DashboardPanel): void; hostConnected(): void; hostDisconnected(): void; get ready(): boolean; get catalogueReady(): boolean; get pendingPresentation(): DashboardPresentationSnapshot | undefined; get panels(): DashboardPanel[]; get hiddenPanelIds(): ReadonlySet; get ownedPanels(): DashboardPanel[]; hasPresentablePanel(id: string): boolean; get viewport(): HTMLElement | undefined; setGeometryTransition(transition: 'immediate' | 'animated'): void; present(): void; getPanelLabel(id: string): string; revealKeyboardControl(layout: DashboardLayout, control: { panel: DashboardPanel; element: HTMLElement; action: DashboardAction; }): Promise; } export {};