import { IChatQuestion, IChatQuestionAnswers } from "../chatService/chatService.js"; /** * One answer as resolved by the voice backend: concrete option values, never * the ordinal the user spoke. Snake_case because these cross the voice * websocket verbatim. */ export interface IBackendQuestionAnswer { readonly question_id: string; /** Exactly one option value, for a single-select question. */ readonly value?: string; /** Option values, for a multi-select question. */ readonly values?: string[]; /** Text-question content, or a freeform fallback on a select. */ readonly freeform?: string; } /** * Convert backend-resolved answers into carousel answers, or `undefined`. * * Matching is by exact option `value` only. The backend already resolved the * spoken ordinal against its mirror of this schema, so a failure to match means * the mirror was stale. A single unresolvable entry rejects the whole set: a * half-applied form is not something the user can see went wrong. */ export declare function resolveQuestionAnswers(questions: readonly IChatQuestion[], answers: readonly IBackendQuestionAnswer[]): IChatQuestionAnswers | undefined;