import type { MarkdownDocument } from "./structured-content/markdown.js"; import type { StructuredRenderableBlock } from "./structured-content/types.js"; /** `pub.leaflet.document` — a full Leaflet document whose `pages` match the * `pub.leaflet.content` shape. */ export declare const LEAFLET_DOCUMENT_FORMAT = "pub.leaflet.document"; /** * Adapt a `pub.leaflet.document` payload (same `pages` shape as * `pub.leaflet.content`) so the leaflet block parser accepts it. */ export declare function leafletDocumentContent(content: unknown): unknown; /** Every third-party block-based content format the structured parser knows. */ export declare const STRUCTURED_BLOCK_FORMATS: string[]; export declare function isStructuredBlockFormat(format: string | null | undefined): boolean; /** * Renderable blocks for any supported block-based third-party format, or null * when `format` isn't one of them. */ /** * Blocks *and* footnotes for a supported format. * * Only the markdown-derived formats produce footnotes; everything else returns * an empty list, so callers have one shape to handle. `structuredFormatBlocks` * stays for consumers that only want blocks. */ export declare function structuredFormatDocument(content: unknown, contentFormat?: string | null): MarkdownDocument | null; export declare function structuredFormatBlocks(content: unknown, contentFormat?: string | null): Array | null; //# sourceMappingURL=content-formats.d.ts.map