/** * ADF (Atlassian Document Format) Helpers * * Utilities for working with Jira's ADF format for rich text content. */ /** * ADF Document structure */ export interface ADFDocument { type: "doc"; version: number; content: ADFNode[]; } export interface ADFNode { type: string; content?: ADFNode[]; text?: string; marks?: Array<{ type: string; attrs?: Record; }>; attrs?: Record; } /** * Convert plain text to ADF format */ export declare function textToADF(text: string): ADFDocument; /** * Convert ADF format to plain text */ export declare function adfToText(adf: ADFDocument | any): string; /** * Convert markdown to ADF format (basic implementation) * * This converts markdown to Jira's ADF format by: * 1. Preserving line breaks as paragraphs * 2. Converting markdown headers (# Header) to text with bold * 3. Converting markdown lists (- item) to text with bullets * * Note: This is a basic implementation. For full markdown support, * consider using a markdown parser library. However, for most use cases * (ticket descriptions with headers, lists, paragraphs), this works well. */ export declare function markdownToADF(markdown: string): ADFDocument; //# sourceMappingURL=adf.d.ts.map