/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * The rows' scroll: what it reports to the paging or the lens, the open editor laid over its cell, the frame's widths and * the number column's, the band and the line that stick under the header, a keyboard move's reveal of its column, and the * slide of the rows a fold or an opening moves. * * @packageDocumentation */ import { type ReactNode } from "react"; import type { SheetDecode } from "./use-decode.js"; import type { SheetSession } from "./use-session.js"; import type { SheetBody } from "./use-body.js"; import type { SheetMachine } from "./use-machine.js"; import type { SheetEffects } from "./use-effects.js"; import type { SheetOpenEditor } from "./use-open-editor.js"; import type { SheetReading } from "./use-reading.js"; import type { SheetRing } from "./use-ring.js"; /** * Lays the rows out in their scroll, and follows it (see the module docs). * * @param sheetDecode - The decoded columns, layout, callbacks, narrowing and row source * @param sheetSession - The store, the lens, the paging, the session and the rows * @param sheetBody - The body, the row space and the cells at each place * @param sheetMachine - The machine's context and dispatch * @param sheetEffects - The effect runner and what its effects reach * @param sheetOpenEditor - The styles and the open editor * @param sheetReading - The loading line and the frame's loading facts * @param sheetRing - The strip, the active cell and the hint * @returns The viewport's report, the editor's node, the sticky rows, the sizes and the motion */ export declare function useSheetScroll(sheetDecode: SheetDecode, sheetSession: SheetSession, sheetBody: SheetBody, sheetMachine: SheetMachine, sheetEffects: SheetEffects, sheetOpenEditor: SheetOpenEditor, sheetReading: SheetReading, sheetRing: SheetRing): { anchorable: (i: number) => boolean; arriving: ReadonlySet; editorAt: { c: number; node: ReactNode; } | undefined; headerRef: import("react").RefObject; itemKey: (i: number) => string; moving: boolean; rangeCols: { c0: number; c1: number; }; rect: { r0: number; r1: number; c0: number; c1: number; }; reportRange: (range: { startIndex: number; endIndex: number; }, isScrolling: boolean, center?: { index: number; withinPx: number; }, shown?: { startIndex: number; endIndex: number; }) => void; revealLine: (at: number, closing: boolean) => void; setNumberProbe: import("react").Dispatch>; sizeOf: (i: number) => number; stickyAt: number | undefined; stickyLineAt: number | undefined; stickyLineRef: import("react").RefObject; widest: { plain: number; chevron: number; }; }; /** What {@link useSheetScroll} gives the parts after it. */ export type SheetScroll = ReturnType; //# sourceMappingURL=use-scroll.d.ts.map