/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type ValueTypeOf } from "@elaraai/east"; import type { RecordSliceBindType } from "@elaraai/east-ui/internal"; import type { SchematicRef } from "./canvas/drawn.js"; import type { SchematicValue, SchematicWindowRows } from "./data.js"; /** A kind of any sort, as the payload carries it. */ type AnyKind = SchematicValue["items"][number] | SchematicValue["zones"][number] | SchematicValue["links"][number] | SchematicValue["nets"][number]; /** A kind's details, as the payload carries them. */ type Details = Extract["value"]; /** A kind's source of the slice. */ type Part = ValueTypeOf; /** A stored row as a read finds it: its bytes, the record holding none of it, or its read in flight. */ export type SchematicRowRead = { readonly state: "held"; readonly row: Uint8Array; } | { readonly state: "absent"; } | { readonly state: "reading"; }; /** The inspected entity's stored rows. */ export interface SchematicInspectedRows { /** The entity read; `undefined` for none. */ readonly ref: SchematicRef | undefined; /** Its row, as its kind's record holds it. */ readonly row: SchematicRowRead; /** Its details row; `undefined` for a kind with no details. */ readonly details: SchematicRowRead | undefined; } /** Nothing inspected: no row read. */ export declare const NO_INSPECTED_ROWS: SchematicInspectedRows; /** * A kind's stored row of a key: where its rows hold it, else by its key through * its `entries`. A kind read by area is never read whole, nor its narrowing * complete: its window holds the row, or it is read by its key (#1393) — * through its source of the slice where it has no `entries`. * * @param kind - The kind * @param key - The row's key * @param window - The rows its window holds, for a kind read by area; `undefined` for one read through its `rows()` * @param part - Its source of the slice, for a kind read by area * @returns The read */ export declare function storedRow(kind: AnyKind, key: string, window?: ReadonlyMap, part?: Part): SchematicRowRead; /** * A kind's details row of a key: where its details read whole hold it, else by * its key through their `entries`. * * @param details - The kind's details * @param key - The row's key * @returns The read */ export declare function storedDetailsRow(details: Details, key: string): SchematicRowRead; /** * Reads the inspected entity's stored rows (see the module docs), handing them * on only when what they say moves. * * @param props - The payload, the entity inspected — `undefined` for none — the kinds read by area and the rows each * one's window holds, and where its rows go * @returns Nothing: it reads */ export declare function SchematicInspectedReader({ value, inspected, areas, windows, onRows }: { value: SchematicValue; inspected: SchematicRef | undefined; areas?: ReadonlySet; windows?: SchematicWindowRows; onRows: (rows: SchematicInspectedRows) => void; }): null; export {}; //# sourceMappingURL=inspector-rows.d.ts.map