/** * Parses natural language decision strings into structured decision input. * * Examples: * "Chose Redis over Memcached — need persistence across restarts" * "Used event-driven pattern instead of callbacks for notifications" * "Reverted the workaround — root cause was fixed upstream" */ /** A rejected option, with its reason only when the prose actually stated one. */ export interface ParsedAlternative { option: string; reason_rejected?: string; } export interface ParsedDecision { summary: string; rationale: string; /** * "authored" when a separator or explicit marker split a real rationale out * of the text; "derived" when no separator matched and the rationale is an * echo of the summary. Consumers must treat an absent marker as unknown, * never as authored. */ rationale_source: "authored" | "derived"; rejected_alternatives: ParsedAlternative[]; domain: string; } export declare function parseDecision(text: string): ParsedDecision; //# sourceMappingURL=record-parser.d.ts.map