import type { Point, Rect } from '@nvidia-elements/core/internal'; import type { WorkspacePlacedGroup } from '../geometry/allocation.utils.js'; import type { WorkspaceDropIntent } from '../interaction/drag-preview.utils.js'; import type { WorkspaceNode } from '../model/layout.utils.js'; import type { WorkspaceMeasurements } from './measurements.utils.js'; import type { WorkspacePanel } from '../../panel/panel.js'; export interface WorkspacePresentedGroup { key: string; panels: WorkspacePanel[]; rect: Rect; active: string; gripWidth: number; tabbed: boolean; } export interface WorkspaceTarget { panels: string[]; headerHeight: number; rect: Rect; tabs: { id: string; rect: Rect; }[]; } /** Binds supplied panels and committed header ownership to the computed allocation. */ export declare function createPresentedGroups(input: { groups: WorkspacePlacedGroup[]; panels: WorkspacePanel[]; root: WorkspaceNode | null; closed: string[]; source: string[]; gripWidth: number; }): WorkspacePresentedGroup[]; /** Keeps the surviving recipient active while carrying one of its panels. */ export declare function preserveRecipientSelection(groups: WorkspacePresentedGroup[], root: WorkspaceNode | null, source?: string[]): WorkspacePresentedGroup[]; /** Reserves projected tab membership without changing its source-excluded group allocation. */ export declare function projectTabMembership(spatial: WorkspacePresentedGroup[], proposed: WorkspacePresentedGroup[]): { key: string; rect: Rect; active: string; gripWidth: number; tabbed: boolean; panels: WorkspacePanel[]; }[]; export declare function getAllocatedTabWidth(group: WorkspacePresentedGroup, measurements: WorkspaceMeasurements): number; /** Indexes strip ownership for one committed root. */ export declare function createTabStripIdentityResolver(root: WorkspaceNode | null): (members: string[], source: string[]) => string; /** Resolves native-scrolled tab controls from computed positions, never animated client rectangles. */ export declare function findTabHeaderTarget(input: { groups: WorkspacePresentedGroup[]; measurements: WorkspaceMeasurements; source: string[]; point: Point; bounds: Rect; client(rect: Rect): Rect; scroll(group: WorkspacePresentedGroup): number; }): WorkspaceTarget | undefined; /** Captures the initial source cue from the current committed group and native strip position. */ export declare function getInitialDragCue(input: { groups: WorkspacePresentedGroup[]; source: string[]; groupDrag: boolean; bounds: Rect; client(rect: Rect): Rect; measurements: WorkspaceMeasurements; width(group: WorkspacePresentedGroup): number; scroll(group: WorkspacePresentedGroup): number; }): { kind: 'group' | 'tab'; rect: Rect; }; /** The computed carried tab reservation owns exactly the same visible rectangle as its landing cue. */ export declare function getTabReservationHit(input: Parameters[0]): "tab" | undefined; export declare function getTabCue(input: { group: WorkspacePresentedGroup; root: WorkspaceNode | null; source: string[]; intent: WorkspaceDropIntent; spatial(): WorkspacePresentedGroup[]; measurements: WorkspaceMeasurements; viewport: Rect; client(rect: Rect): Rect; scroll(group: WorkspacePresentedGroup): number; }): { cue: { x: number; y: number; width: number; height: number; }; bounds: Rect; };