import type { Point, Rect } from '@nvidia-elements/core/internal'; import type { WorkspacePlacedRegion } from '../geometry/allocation.utils.js'; import type { WorkspaceDragPreview, WorkspaceDropIntent, WorkspacePlacementAcquisition } from './drag-preview.utils.js'; import type { WorkspaceInsertionOffer } from './insertion-offers.utils.js'; import type { WorkspaceLayout, WorkspaceNode } from '../model/layout.utils.js'; import type { WorkspaceLayoutProjector } from '../model/projection.utils.js'; import type { WorkspacePlacementPlanner } from '../placement/planner.utils.js'; import type { WorkspaceScopeRectResolver } from '../placement/scope.utils.js'; import type { WorkspacePlacementSession } from '../placement/session.utils.js'; import type { WorkspacePlacementCatalog } from '../evaluation.utils.js'; interface WorkspacePlacementQuery { resolveScopeRect?: WorkspaceScopeRectResolver; gap: number; source: string[]; point: Point; regions: WorkspacePlacedRegion[]; orderingRegions?: WorkspacePlacedRegion[]; sourceReservation?: Rect; headers?: Rect[]; preview?: WorkspaceDragPreview; local?: WorkspaceDropIntent; header: boolean; bounds: Rect; } type DecisionInput = WorkspacePlacementQuery & { currentLayout: WorkspaceLayout; available: string[]; projectLayout?: WorkspaceLayoutProjector; planPlacement?: WorkspacePlacementPlanner; placementSession?: WorkspacePlacementSession; }; export interface WorkspacePlacementDecision { intent: WorkspaceDropIntent | undefined; acquisition?: WorkspacePlacementAcquisition; } interface PointerPlacementInput { placement: WorkspacePlacementCatalog; canonicalRoot: WorkspaceNode | null; currentLayout: WorkspaceLayout; source: string[]; point: Point; heldIntent: WorkspaceDropIntent; groupable: boolean; gap: number; available: string[]; projectLayout?: WorkspaceLayoutProjector; planPlacement?: WorkspacePlacementPlanner; placementSession?: WorkspacePlacementSession; } export declare function decidePointerPlacement(input: PointerPlacementInput): WorkspacePlacementDecision; /** Chooses input and availability together from the two operation-specific computed projections. */ export declare function decidePlacement(input: DecisionInput): { acquisition: { plan: import("../placement/planner.utils.js").WorkspacePlacementPlan; rect: Rect; } | undefined; intent: WorkspaceDropIntent | undefined; hint: WorkspaceInsertionOffer | undefined; }; export {};