/** * Minimal Atlassian Document Format (ADF) helpers. * * Jira Cloud returns issue descriptions and comment bodies as ADF JSON and * requires ADF when creating comments. The flattener here is a display/agent- * context aid, not a fidelity converter: it covers the common nodes * (paragraphs, text, hard breaks, lists, code blocks, headings, mentions, * links) and degrades unknown nodes to their text content. */ /** Loosely-typed ADF node — Jira emits many node types we don't enumerate. */ export interface AdfNode { type?: string; text?: string; version?: number; content?: AdfNode[]; attrs?: Record; } /** Flatten an ADF document (or fragment) to plain text. */ export declare function adfToText(node: unknown): string; /** * Wrap plain text in a minimal ADF document for comment creation. Each line * becomes a paragraph; blank lines produce empty paragraphs so spacing * round-trips reasonably. */ export declare function textToAdf(text: string): AdfNode; //# sourceMappingURL=adf.d.ts.map