/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { EntryVersion } from "./transactions.js"; import type { LocalLayer } from "./use-editing.js"; import type { SheetRootValue, SheetRowValue } from "./values.js"; type Cells = SheetRowValue["cells"]; /** What reads a sheet's columns from data into its rows, at one day. */ export interface SheetCellsFromData { /** * The source's rows, each with the cells read over its entry — as they are while nothing is read. `entryOf` is the * entry the window standing at a row's position read with it (#1599), where the sheet's windows carry theirs. */ rows: (rows: readonly SheetRowValue[], positions: readonly number[], entryOf?: (id: string, at: number) => Uint8Array | undefined) => readonly SheetRowValue[]; /** The session's layer over them, each of its rows with the cells read over its draft. */ layer: (layer: LocalLayer, entries: ReadonlyMap, drafts: ReadonlyMap) => LocalLayer; /** What the record holds of an entry a gesture began from, its cells from data read at the day: what a changed cell is told from. */ held: (began: EntryVersion) => Cells | undefined; } /** * Reads a sheet's columns from data into its rows at the day (see the module docs): each row once per entry, per draft * and per day, so a render that moves none of them reads nothing again. * * @param value - The sheet's root: its `cellsAt`, and its editing declaration's `readEntry` and draft type * @param day - The day the cells are read at * @param unread - The words in each marked cell of a row whose read failed: why it is locked * @returns The readers — the same ones while the root, the day and the words hold */ export declare function useCellsFromData(value: SheetRootValue, day: Date, unread: string): SheetCellsFromData; export {}; //# sourceMappingURL=cells-from-data.d.ts.map