/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ type Styles = Record>; /** Props of {@link SheetPager}. */ export interface SheetPagerProps { styles: Styles; /** The element the rows scroll in, sideways too: the window it moves. */ frame: HTMLElement | null; /** The columns it pages: every column but the pinned one, in order — the Row column first, while it shows. */ columns: readonly SheetPagerColumn[]; /** A column's slot, px: the frame's width less the pinned column, shared by those in view. */ slotPx: number; /** How many columns the window shows at once. */ inView: number; /** Whether the Row column shows (SH2). */ rowNumbers: boolean; /** Told as the viewer shows or hides the Row column; absent, the grid has no row numbers — a host's (#1536) — and the menu offers no `Row number`. */ onRowNumbers?: ((on: boolean) => void) | undefined; } /** A column of the window, as the jump menu lists it (SH2). */ export interface SheetPagerColumn { key: string; header: string; /** Its kind, in words. */ kind: string; } /** * Brings the window to a first column: one column over the base motion, more over the slow (SH1.2), at once under * reduced motion. * * @param frame - The element the rows scroll in * @param slotPx - A column's slot, px * @param last - The last first column the window can have * @param to - The first column asked for, held to the window's ends * @returns The first column it goes to */ export declare function pageWindow(frame: HTMLElement, slotPx: number, last: number, to: number): number; /** * Reads where the window rests (SH1): its first column, off the frame as it scrolls — what the pager's readout says, * and a host's header cuts its group labels to (#1536). * * @param frame - The element the rows scroll in, sideways too; `null` reads nothing * @param slotPx - A column's slot, px * @param last - The last first column the window can have * @returns The first column in view, and a setter for a step's target, before the frame has moved to it */ export declare function useWindowFirst(frame: HTMLElement | null, slotPx: number, last: number): [number, (first: number) => void]; /** Renders a phone's column pager — see the module docs. */ export declare const SheetPager: import("react").MemoExoticComponent<({ styles, frame, columns, slotPx, inView, rowNumbers, onRowNumbers }: SheetPagerProps) => import("react/jsx-runtime").JSX.Element>; export {}; //# sourceMappingURL=Pager.d.ts.map