/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { SchematicRef } from "./canvas/drawn.js"; import type { SchematicValue } from "./data.js"; import type { SchematicDrafts } from "./drafted.js"; /** Which drafted rows of the kinds read by area their narrowing holds. */ export interface SchematicDraftsNarrowing { /** * Each kind read by area's drafted rows a gesture did not create, by its slot then by key: whether its narrowing holds * each, by the row its session began from — every one, while nothing narrows it. A row whose answer is in flight is * absent. */ readonly held: ReadonlyMap>; /** Whether a new narrowing's answers are in flight: the last narrowing's stand in meanwhile. */ readonly busy: boolean; } /** No drafted row asked of any narrowing. */ export declare const NO_DRAFTS_NARROWING: SchematicDraftsNarrowing; /** * Whether a kind read by area's narrowing holds one of its drafted rows, as the reader answered (see the module docs). * * @param narrowing - What the reader answered * @param ref - The row's kind's slot and its key * @returns `true` held, `false` left out; `undefined` for a row not asked — one a gesture created, one of a kind read * otherwise, or one whose answer is in flight */ export declare function draftHeld(narrowing: SchematicDraftsNarrowing, ref: SchematicRef): boolean | undefined; /** * Reads which drafted rows of the kinds read by area their narrowing holds (see the module docs), handing the frame what * it read only when that moves. * * @param props - The payload, the kinds read by area, the drafts, the row each drafted row's session began from — the * editing's `held`: `undefined` for a row a gesture created — and where the answers go * @returns Nothing: it reads */ export declare function SchematicDraftsReader({ value, areas, drafts, original, onRead }: { value: SchematicValue; areas?: ReadonlySet; drafts: SchematicDrafts; original: (slot: string, key: string) => unknown; onRead: (narrowing: SchematicDraftsNarrowing) => void; }): null; //# sourceMappingURL=drafts-narrowing.d.ts.map