import type { CompiledDefinition } from '../core/types.js'; export declare const esc: (s: unknown) => string; export type RefState = Map; /** Resolves a local media src to an embeddable URI (or why it can't be). */ export type MediaResolver = (src: string) => { uri: string; } | 'missing' | 'toobig' | null; /** * Expands one ```dj-records fence body into rendered rows — the READ-time half * of an embed. `null` means the spec named a block this document cannot answer * for, in which case a visible note is rendered in its place: the finding was * already raised at parse time, and a directive that resolves to nothing at * all is the one outcome an embed must never have. * * The resolver is supplied by whoever holds the rows (`slimConcept`), because * `mdToHtml` sees a definition and a document's prose but never its blocks. */ export type EmbedResolver = (source: string) => string | null; export declare function inlineMd(text: string, def: CompiledDefinition, refState: RefState, media?: MediaResolver): string; export declare function mdToHtml(md: string, def: CompiledDefinition, refState: RefState, media?: MediaResolver, embeds?: EmbedResolver): string; /** A block section's non-table markdown: intro (before the table) + outro (after). */ export declare function blockPose(md: string): { intro: string; after: string; };