/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * Evaluate business requirements against the current draft collection — * linear in the rows and the drafts (#859): the source rows' drafts are read * once per source generation, placement is one ordered pass, and each draft's * position comes from one index. The author's row checks cross the wire as * one batch per evaluation (#882), so the rows are sent and built once, not * once per draft. * * @packageDocumentation */ import { type ValueTypeOf } from "@elaraai/east"; import { SheetEditingType } from "@elaraai/e3-ui/internal"; import { type BatchReadiness } from "./draft-values.js"; import type { EntryVersion } from "./transactions.js"; import type { SheetRowValue } from "./values.js"; type Editing = ValueTypeOf; /** * Build one checker whose inputs are captured at the current source generation. * * @param editing - The decoded editing declaration * @param resident - The source's resident rows * @param positions - Each resident row's source position — a failed window before it does not move it (#853) * @param partial - Whether the rows are a window of a paged source * @param base - A resident row's own draft, by its id and its source position — the entry its window was read with, * lifted — where the sheet's windows carry theirs (#1599): what a check reads the rows around a drafted one over, * never an entry read on its own at the revision now, which is on its way while the rows are read again * @param landed - What a Save landed that the rows have still to read, asked as a check runs: each entry as the Save * left it, as the grid draws it over the rows read before it — what a check reads in their place * @returns The checker, or `undefined` when the author declared no checks */ export declare function authorReadiness(editing: Editing, resident: readonly SheetRowValue[], positions: readonly number[], partial: boolean, base?: (id: string, at: number) => Uint8Array | undefined, landed?: () => Iterable): ((entries: ReadonlyMap) => BatchReadiness) | undefined; export {}; //# sourceMappingURL=readiness.d.ts.map