import type { ResolvedInput } from './inputs.js'; import type { CompiledProgram } from './types.js'; import type { GridCell, Heap, Value } from './values/index.js'; /** A grid the program declared, with the cells this bar wrote into it. */ export interface Grid { readonly key: string; readonly rows: number; readonly cols: number; readonly cells: readonly GridCell[]; } export declare class Grids { private readonly heap; private readonly declared; constructor(program: CompiledProgram, inputs: readonly ResolvedInput[], heap: Heap); get empty(): boolean; /** Step 3: every cell buffer starts each execution of a bar empty. */ clear(): void; /** Step 5: each grid's handle lands in the slot its declaration named. */ fill(slots: Value[]): void; /** A grid is reachable for as long as the study is, whatever a script holds. */ walk(visit: (value: Value) => void): void; /** The grids and the cells the last executed bar wrote into them. */ read(): readonly Grid[]; } //# sourceMappingURL=grids.d.ts.map