/** * Mermaid whiteboard post-processing. * * After lark-cli creates whiteboard blocks from mermaid fences, this module * patches connector caption background colors via the lark-cli whiteboard * API (v1.0.8+): * * Flow: * 1. Query raw DSL via whiteboard +query --output_as raw * 2. Patch caption background colors in DSL * 3. Re-upload patched DSL via +whiteboard-update --input_format raw * * The whiteboard is already created by lark-cli during document creation * (from the mermaid fence). We only need to patch the caption styling. * Replaces the old whiteboard-cli external dependency approach. */ import type { LarkCli } from "../cli.js"; /** Extract mermaid block bodies (without fences) from markdown, in order. */ export declare function extractMermaidBlocks(md: string): string[]; /** * Patch edge label background colors for all mermaid-derived whiteboards. * * The whiteboard was already created by lark-cli during document creation. * This function queries back the raw DSL, patches caption background colors, * and re-uploads the patched DSL. Requires lark-cli v1.0.8+ for whiteboard * +query support. * * boardTokens[i] must correspond to mermaidBlocks[i] — same order as mermaid * fences appeared in the uploaded markdown. Silently skips boards whose mermaid * source has no edge labels. Returns number of boards successfully patched. */ export declare function patchMermaidWhiteboards(boardTokens: string[], mermaidBlocks: string[], cli: LarkCli): number; //# sourceMappingURL=mermaid-patch.d.ts.map