/** * Response Parser for LLM Chat Interface * * Extracts DSL commands from LLM markdown responses by parsing * fenced code blocks labeled ```flowdrop. All other fenced blocks * (bare ```, ```python, etc.) are treated as explanation text. * * @module chat/responseParser */ import type { ExtractedCommands } from '../types/chat.js'; /** * Extract DSL commands from an LLM response string. * * Only fenced code blocks labeled `flowdrop` are parsed for commands. * All other fenced blocks are passed through as explanation text. * Empty lines and comment lines inside flowdrop blocks are skipped. * * @param llmResponse - The raw LLM response text (may contain markdown) * @returns Extracted commands and explanation text */ export declare function extractCommands(llmResponse: string): ExtractedCommands;