/** * The deterministic text/data {@link @nhtio/adk/batteries/media/contracts!MediaEngine}: * seeds and conversions for the text-shaped family (txt/md/json/yaml/csv/html). * * @module @nhtio/adk/batteries/media/engines/data * * @remarks * The smallest engine in the fleet, and deliberately so: text-family media generation is a * literal (`''`, `'{}'`, a minimal HTML shell) and text-family conversion is a parse and a * re-serialize. Everything here is deterministic — same inputs, same bytes — and cross-env * (no `node:*` anywhere). * * Capabilities: * * - **generate**: `EMPTY_MIME` → txt, md, json, yaml, csv, html. * - **convert**: json ⇄ yaml (js-yaml), json ⇄ csv (papaparse), json → txt (pretty print). * * `papaparse` is an optional peer (lazily imported only for the csv edges); `js-yaml` is a * regular dependency of the library. */ import type * as PapaNS from 'papaparse'; import type { MediaEngine } from "../contracts"; type PapaModule = typeof PapaNS; /** Options for {@link dataEngine}. */ export interface DataEngineOptions { /** Override the papaparse resolution (tests / custom builds). Default: `import('papaparse')`. */ papaparse?: () => PapaModule | Promise; } /** * Construct the deterministic text/data engine. * * @param options - Optional module resolver override. * @returns The engine. */ export declare const dataEngine: (options?: DataEngineOptions) => MediaEngine; export {};