/** * Per-block data binding: `dataRef` or inline `data`, plus an optional * `transform`, materialized once at normalize time. * * The block's renderer and its `check()` only ever see the materialized rows and * the field list, so every block reads data the same way and every unknown * field is reported with the path the author wrote and the fields that exist. */ import { type DiagnosticBag } from '../diagnostics.js'; import { type DataRow, type MaterializedData } from './dataset-types.js'; export { fieldValue } from './dataset-types.js'; export interface BlockDataInput { dataRef?: unknown; data?: unknown; transform?: unknown; } /** Diagnostic for an unknown field reference; `details.allowed` lists the fields. */ export declare function reportUnknownField(field: string, data: MaterializedData, path: string, bag: DiagnosticBag, nodeId?: string): void; /** * Resolve a block's data. Returns undefined when the block binds no data or the * binding is invalid (the problem is reported). */ export declare function resolveBlockData(input: BlockDataInput, datasets: Record, path: string, bag: DiagnosticBag): MaterializedData | undefined; //# sourceMappingURL=resolve-block-data.d.ts.map