import type { WorkspaceLayout } from '../model/layout.utils.js'; import type { WorkspaceDestination } from '../model/operations.utils.js'; import type { WorkspaceLayoutProjector } from '../model/projection.utils.js'; import type { WorkspacePlacementScope } from './scope.utils.js'; import type { WorkspacePlacementSession } from './session.utils.js'; export interface WorkspacePlacementPlan { kind: 'reorder' | 'split' | 'tab' | 'insert'; scope?: WorkspacePlacementScope; layout: WorkspaceLayout; } interface PlacementInput { layout: WorkspaceLayout; source: string[]; destination: WorkspaceDestination; available: string[]; projectLayout?: WorkspaceLayoutProjector; operation: 'split' | 'order' | 'insert' | 'tab'; } export type WorkspacePlacementPlanner = (input: PlacementInput) => WorkspacePlacementPlan | undefined; /** Requires an immutable current layout; projection callbacks are never retained. */ export declare function createWorkspacePlacementPlanner(): WorkspacePlacementPlanner; interface WorkspacePlanningContext { currentLayout: WorkspaceLayout; source: string[]; available: string[]; projectLayout?: WorkspaceLayoutProjector; planPlacement?: WorkspacePlacementPlanner; placementSession?: WorkspacePlacementSession; } /** Supplied planners keep their ordinary path; component gestures use their explicit session. */ export declare function resolvePlacementPlan(context: WorkspacePlanningContext, destination: WorkspaceDestination, operation: PlacementInput['operation']): WorkspacePlacementPlan | undefined; export declare function planWorkspacePlacement(input: PlacementInput): WorkspacePlacementPlan | undefined; export {};