/** * Workbook Adapter — Bridge between a host workbook (implementing the * `WorkbookLike` / `WorksheetLike` / `CellLike` interfaces) and the * engine's snapshot representation. * * This is the only file in the engine pipeline that walks a live host * workbook; the rest of the pipeline consumes the immutable * `WorkbookSnapshot` this file produces. * * ## Responsibilities * * 1. `buildWorkbookSnapshot()` — walk the host workbook and produce an * immutable `WorkbookSnapshot`. * 2. Cell value conversion — Date → serial number, rich text → string, * shared formula translation, etc. */ import type { WorkbookLike } from "../materialize/types.js"; import type { WorkbookSnapshot } from "./workbook-snapshot.js"; /** * Build a complete `WorkbookSnapshot` from a live workbook. * * This traverses all worksheets and cells once, converting everything to * engine-internal snapshot types. The result is a fully self-contained, * read-only data structure. */ export declare function buildWorkbookSnapshot(workbook: WorkbookLike): WorkbookSnapshot;