/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** * The instants a row carries (#631) — one walk over every arm's instant * fields, and what the axis reads off it: the rows whose instants ride another * arm (split out of `model.ts`, #815). The axis never fits its window to them * (#822): the window is stated, or a bound slice's range. * * @packageDocumentation */ import type { PlanAxisKind, PlanInstantValue } from "./instant.js"; import type { PlanRowIndex, PlanRowValue } from "./model.js"; import type { RowKey } from "./plan-state.js"; /** * Visit every instant a row carries — each arm's instant fields, whatever * the kind — so every walk over a row's instants reads one list rather than * keeping its own copy of the row vocabulary. * * @param row - The decoded row * @param visit - Called once per instant (interval ENDS flagged, so an * ordinal end can be read inclusively) */ export declare function forEachInstant(row: PlanRowValue, visit: (t: PlanInstantValue, end: boolean) => void): void; /** One row whose instants ride another arm than the axis — the diagnostic's subject. */ export interface PlanAxisMismatch { /** The offending row's key. */ row: RowKey; /** The arm its instants ride (the first one found). */ found: PlanAxisKind; } /** * The rows whose instants do NOT ride the axis's arm — the Planner's * single-axis-kind rule, enforced at render time (#631). A mixed arm is a * diagnostic naming the row and the arm it carries, never a silent * misplacement — and it belongs to THAT row (#811): the row renders in place * as a diagnostic row and derives nothing, while the rest of the canvas keeps * drawing. (It used to replace the whole canvas, so one bad row arriving in a * paged window mid-scroll made everything vanish.) * * @param index - The row-tree index * @param kind - The axis kind * @returns One entry per offending row, in collection order */ export declare function axisKindMismatches(index: PlanRowIndex, kind: PlanAxisKind): PlanAxisMismatch[]; //# sourceMappingURL=row-instants.d.ts.map