import type { InputPath } from '../editing.js'; /** One input's row as drawn, with its place among its list's inputs. */ export interface DrawnRow { path: InputPath; /** Which copy of the input this is, when a list draws it in each of its rows. */ instance: string; index: number; rect: DOMRect; el: HTMLElement; hidden: boolean; /** A hidden input a list with widths draws after the inputs the form shows. */ trailing: boolean; } /** Inputs drawn one under another: an input and those `anchor-below` it, top to bottom. */ export interface Column { rows: DrawnRow[]; /** The cell a list with widths draws the column in. */ cell: HTMLElement | null; } /** The columns of one list drawn side by side on one line of the form, left to right. */ export interface Line { parent: InputPath; columns: Column[]; } /** Where dragged inputs land: before `index` of `parent`, as a column beside one, or in one. */ export interface Drop { parent: InputPath; index: number; beside?: { path: InputPath; side: 'left' | 'right'; }; stack?: { path: InputPath; side: 'above' | 'below'; }; } export declare const rowsOf: (line: Line) => DrawnRow[]; export declare function inputCell(el: HTMLElement): HTMLElement | null; /** The form's lines: a column is the rows one cell draws, and columns at one height share a line. */ export declare function linesIn(root: HTMLElement): Line[]; /** Neighbours on one line, split at `pointer` (a percent of their list's width), in 5% steps. */ export declare function snapSplit(total: number, pointer: number): [left: number, right: number];