import type { AdfDocument, MermaidBlock } from "./types.js"; /** * Convert a markdown string to an Atlassian Document Format (ADF) document. */ export declare function convertMarkdownToAdf(markdown: string): AdfDocument; /** * Extract the title from markdown content. * Returns the first H1 heading, or null if none found. */ export declare function extractTitle(markdown: string): string | null; /** * Map from mermaid diagram filename to its uploaded attachment info. */ export interface AttachmentMap { [filename: string]: { fileId: string; collectionName: string; }; } /** * Inject mermaid diagram images and collapsible source code blocks into an ADF document. * * Walks the ADF tree looking for text nodes containing MERMAID_DIAGRAM_PLACEHOLDER_N * or MERMAID_ERROR_PLACEHOLDER_N, and replaces the parent paragraph with: * 1. A mediaSingle node (rendered PNG image) — only for successful renders * 2. An expand node (collapsible code block with original mermaid source) * * For failed renders, only the expand node with the source code is inserted. */ export declare function injectMermaidAdf(adf: AdfDocument, blocks: MermaidBlock[], attachmentMap: AttachmentMap): AdfDocument; /** * Derive a page title from the source path or URL. * Strips extension and converts hyphens/underscores to spaces. */ export declare function titleFromFilename(source: string): string; //# sourceMappingURL=converter.d.ts.map