export type WorkspaceNode = WorkspaceGroup | WorkspaceSplit; export interface WorkspaceGroup { type: 'group'; panels: string[]; active: string; } export interface WorkspaceSplit { type: 'split'; axis: 'horizontal' | 'vertical'; weights: number[]; children: WorkspaceNode[]; } export interface WorkspaceLayout { version: 1; root: WorkspaceNode | null; closed: string[]; } export declare function getPanelIds(node: WorkspaceNode | null): string[]; export declare function getSplitSide(axis: WorkspaceSplit['axis'], position: 'before' | 'after'): 'left' | 'right' | 'top' | 'bottom'; /** Converts consecutive splits on the same axis into siblings. */ export declare function normalizeLayout(node: WorkspaceNode): WorkspaceNode; /** Reuses unchanged nodes in canonical split graphs produced by mapGroups. */ export declare function normalizeLayoutWithSharing(node: WorkspaceNode): WorkspaceNode;