/** * [WHO]: Provides extractTaggedPayload(), parseSimplifyOutput(), parseOptions() * [FROM]: Depends on simplify output constants and option types * [TO]: Consumed by simplify analyzer and extension entry point * [HERE]: extensions/optional/simplify/simplify-parser.ts - XML payload and command option parsing */ import { type SimplifyOutput, type SimplifyOptions } from "./simplify-types.js"; /** * Extract content between XML tags (following loop/ extension pattern) * Uses lastIndexOf to handle multiple occurrences (takes the last one) */ export declare function extractTaggedPayload(text: string, startTag: string, endTag: string): string | undefined; /** * Parse LLM output into SimplifyOutput with multiple fallback strategies: * 1. XML-tagged extraction (...) * 2. Raw JSON from markdown code blocks * 3. Fallback to SIMPLIFY_FALLBACK */ export declare function parseSimplifyOutput(text: string): SimplifyOutput; /** * Parse command-line arguments into SimplifyOptions * * Supported flags: * --dry-run Preview without applying * --no-test Skip test validation * --concurrency=N Set parallel file limit (default: 3) * --force Bypass cache * * All other arguments are treated as file paths */ export declare function parseOptions(args: string): SimplifyOptions;