import type { ReactiveControllerHost } from 'lit'; import { DashboardPanel } from '../panel/panel.js'; import type { DashboardMetrics, DashboardPixelPlacement, DashboardResizeEdge } from '../utils/geometry.utils.js'; import type { DashboardAction, DashboardPointerIntent } from '../utils/intent.types.js'; import type { DashboardMovementRequest } from '../utils/movement.utils.js'; import type { DashboardGridPlacement, DashboardLayout } from '../dashboard.types.js'; /** Display state for a pointer interaction, including press and placement preview. */ export interface DashboardPointerPresentation { readonly panel: DashboardPanel; readonly action: DashboardAction; readonly preview: boolean; readonly canvasPlacement?: DashboardPixelPlacement; readonly rejected?: boolean; readonly initialPlacement?: DashboardGridPlacement; readonly start?: boolean; } interface DashboardInteractionControl { panel: DashboardPanel; action: string; element: HTMLElement; edge?: DashboardResizeEdge; } interface DashboardInteractionDelegate { getLayout(): DashboardLayout | undefined; createArrangementStateCheck(): () => boolean; getMetrics(): DashboardMetrics | undefined; getViewport(): HTMLElement | undefined; isActionAllowed(panel: DashboardPanel, action: DashboardAction): boolean; findPointerProposal(layout: DashboardLayout, request: { readonly id: string; readonly intent: DashboardPointerIntent; }): DashboardLayout | undefined; findCommandProposal(layout: DashboardLayout, id: string, request: { readonly command: string; readonly placement?: DashboardGridPlacement; }): DashboardLayout | undefined; getMovementTarget(layout: DashboardLayout, request: DashboardMovementRequest): DashboardGridPlacement | undefined; present(layout: DashboardLayout | undefined, presentation?: DashboardPointerPresentation): void; commit(layout: DashboardLayout): boolean; reveal(layout: DashboardLayout, control: DashboardInteractionControl & { action: DashboardAction; }): void; announce(id: string, geometry: DashboardGridPlacement, valid: boolean): void; } /** Owns pointer arrangement and immediate keyboard placement. */ export declare class DashboardInteractionController { #private; constructor(host: HTMLElement & ReactiveControllerHost, delegate: DashboardInteractionDelegate); hostConnected(): void; hostDisconnected(): void; cancel(): void; } export {};