import { Dict } from "./commonTypes"; interface Mark { object: "mark"; type: "bold" | "code" | "italic" | "underlined" | "strikethrough"; } interface Leaf { object: "leaf"; text: string; marks?: Mark[]; } interface Node { object: "block" | "inline" | "text"; type: "h1" | "h2" | "h3" | "ol" | "ul" | "li" | "codeblock" | "code" | "blockquote" | "paragraph" | "image" | "video" | "link" | "emoji" | "separator"; data: Dict; nodes?: Node[]; leaves?: Leaf[]; } interface Document { nodes: Node[]; } interface Value { document: Document; } export interface NamedDocument extends Document { title: string; } export declare function splitIntoNamed(v: Value): NamedDocument[]; export declare function split(v: Value): Node[][]; export declare function isEmpty(v: Value): boolean; export declare function extractText(v: Value): string; export declare function extractTextFromParagraphs(v: Value): string; export interface Header { id: string; text: string; children: { id: string; text: string; }[]; } export declare function extractHeaders(v: Value): Header[]; interface ImageFile { id: string; public_url: string; } export declare function nodesToHTML(cdnBaseURL: string, nodes: Node[], contentImageFiles: ImageFile[]): string; export declare function toHTML(cdnBaseURL: string, v: Value, contentImageFiles: ImageFile[]): string[]; export {};