import type { WorkspaceGroup, WorkspaceLayout, WorkspaceNode } from './layout.utils.js'; export interface WorkspaceDestination { target: string; /** Region path in the visible projection of the current layout. */ region?: string; position: 'tab' | 'left' | 'right' | 'top' | 'bottom'; index?: number; } export declare function sameDestination(left: WorkspaceDestination, right: WorkspaceDestination): boolean; export declare function findGroup(node: WorkspaceNode | null, id?: string): WorkspaceGroup | undefined; export declare function isValidInsertionIndex(index: number | undefined): boolean; /** Removes carried panels from the arrangement and closed list without changing the saved layout. */ export declare function createDetachedLayout(layout: WorkspaceLayout, source: string[]): WorkspaceLayout; export declare function placePanels(input: { layout: WorkspaceLayout; source: string[]; destination: WorkspaceDestination; splitWeights?: [number, number]; }): WorkspaceLayout | undefined; /** Retains panel placement and active preference when closing. */ export declare function closePanel(layout: WorkspaceLayout, id: string): WorkspaceLayout | undefined; export declare function openPanel(layout: WorkspaceLayout, id: string): WorkspaceLayout | undefined; /** Retains saved panel positions when supplied panels change. */ export declare function reconcilePanels(layout: WorkspaceLayout, available: string[]): WorkspaceLayout; /** Creates the visible arrangement while retaining the saved snapshot. */ export declare function projectLayout(layout: WorkspaceLayout, available: string[]): WorkspaceLayout; export declare function selectPanel(layout: WorkspaceLayout, id: string): WorkspaceLayout | undefined; export declare function getFullscreenWorkspaceLayout(layout: WorkspaceLayout, anchor: string | undefined): { version: 1; closed: string[]; root: WorkspaceGroup; } | undefined;