/** * Utilities for formatting clarification comments as GitHub issue comments * and parsing answers from comments. */ import type { ClarificationQuestion, ParsedAnswer } from '../types/clarification.js'; /** * Input comment shape for parsing answers. * Defined locally to avoid importing from external packages. */ export interface CommentInput { id: string; body: string; author: string; createdAt: Date; } /** * Prefix used in HTML markers to identify clarification comments. */ export declare const CLARIFICATION_MARKER_PREFIX = "generacy-clarification"; /** * Build an HTML comment marker for a clarification batch. * * @param batchNumber - The batch number to encode in the marker * @returns An HTML comment string like `` */ export declare function buildClarificationMarker(batchNumber: number): string; /** * Parse a batch number from text containing a clarification marker. * * @param text - The text to search for a marker * @returns The batch number if found, or null */ export declare function parseClarificationMarker(text: string): number | null; /** * Format clarification questions as a full GitHub issue comment body. * * @param batchNumber - The batch number for this set of questions * @param questions - The clarification questions to format * @returns A formatted markdown string suitable for posting as a GitHub comment */ export declare function formatClarificationComment(batchNumber: number, questions: ClarificationQuestion[]): string; /** * Parse answers from GitHub issue comments. * * Scans comment bodies for patterns like `Q1: answer text` and extracts * answers for the specified question numbers. Later answers for the same * question override earlier ones (last wins). * * @param comments - Array of comment objects to parse * @param questionNumbers - Question numbers to look for * @returns Array of parsed answers */ export declare function parseAnswersFromComments(comments: CommentInput[], questionNumbers: number[]): ParsedAnswer[]; //# sourceMappingURL=issue-comment.d.ts.map