/** * Markdown preprocess — deterministic transforms for Feishu doc creation. * * Handles: * - Blue numbering prefix on numbered headings * - Heading background color via block-level PATCH (not in this module) * - Rainbow color mapping per heading level * - Inline text color/bg via Lark-flavored markdown */ export interface RainbowConfig { /** Number prefix color */ numberColor: string; /** Background color name for */ bgColor: string; } export interface PreprocessOptions { /** Rainbow color map per heading level (2=##, 3=###, etc.) */ rainbowMap?: Record; /** Strip first H1 if it duplicates the document title */ stripTitle?: boolean; /** Number prefix color (used when no rainbow map) */ numberColor?: string; } /** * Transform a single heading line. * - Plain numbered heading → blue prefix + optional rainbow bg * - Already decorated → pass through * - No number → bg only */ export declare function transformHeading(line: string, rainbowMap?: Record): string; /** * Preprocess full markdown text. */ export declare function preprocessMarkdown(text: string, opts?: PreprocessOptions): string; //# sourceMappingURL=preprocess.d.ts.map