import { DocumentWriter, WriteResult } from '../core/ir/adapters.js'; import { FlowDoc } from '../core/ir/flow.js'; /** * Render a {@link FlowDoc} to a self-contained HTML document (ir-design ยง7). * * A flow medium: no pagination, no layout engine and no fonts to embed, so this * is a pure, zero-I/O transform. `flow.body` already carries FINAL effective * properties (the Stage-6 contract), so values map straight to CSS; every read * still routes through the cascade resolver over the empty sheet, a memoized * identity on reader output. Charts and shapes emit as inline SVG; deliberately * out of scope (reported as losses): inline math and headers/footers (no fixed * pages to band them onto). Page-break hints map to CSS `break-before`. * * @param flow The format-neutral interlayer document tree. * @returns The encoded HTML bytes plus the recorded {@link Loss} list. */ export declare function writeHtml(flow: FlowDoc): WriteResult; /** * The flow-medium {@link DocumentWriter} adapter (id `'html'`), wrapping * {@link writeHtml}, with the set of {@link FEATURES} it renders. */ export declare const htmlWriter: DocumentWriter;