import type { PanelState } from './types'; export declare function clamp(value: number, min: number, max: number): number; /** * Scale `sizes` proportionally so they add up to `target`, keeping each one * inside its [min, max]. Space that a clamped panel cannot take is handed to * the panels that still have room. Pure so it can be unit tested. */ export declare function fitSizesToTotal(items: Array<{ size: number; min: number; max: number; }>, target: number): number[]; type Resolved = { size: number; isCollapsed: boolean; }; /** * Pure arithmetic for moving the handle between `before` and `after` by * `delta` percent (positive grows `before`). Both panels' limits are * honoured: the handle stops when either neighbour hits its min or max, and * the two sizes always change by the same amount so the total is preserved. * Returns null when nothing can move. */ export declare function computeResize(before: PanelState, after: PanelState, delta: number): { before: Resolved; after: Resolved; } | null; /** Feasible [min, max] for the `before` panel's size, given its neighbour. */ export declare function computeHandleRange(before: PanelState, after: PanelState): { now: number; min: number; max: number; }; /** Generated host id for a panel; the handle derives the same id for `aria-controls`. */ export declare const panelHostId: (panelId: string) => string; export {};