import { k as QuestionAggregate, F as FormAnalytics, l as FormVersionRecord, c as FormSchema } from './analytics-B1eUnjBp.cjs'; import './lifecycle.cjs'; import './i18n/keys.cjs'; type ResponseSummaryInput = FormAnalytics | { readonly questions: readonly QuestionAggregate[]; readonly formId?: string; readonly formVersion?: number; }; interface ResponseSummaryLanguageAggregate { readonly language: string; readonly submissionCount: number; readonly summary: ResponseSummaryInput; } interface ResponseSummarySkipReason { readonly reason: string; readonly count: number; readonly language?: string; } interface ResponseSummaryQuestion { readonly fieldId: string; readonly label: string; readonly kind: QuestionAggregate["kind"]; readonly answeredCount: number; readonly unansweredCount: number; readonly definition?: unknown; readonly optionDefinitions?: Readonly>; readonly options?: readonly { readonly id: string; readonly label: string; readonly count: number; readonly percentage: number; }[]; readonly statistics?: Readonly>; } interface ResponseSummaryData { readonly formId: string; readonly version: number; readonly sourceLanguage: string; readonly title: string; readonly questions: readonly ResponseSummaryQuestion[]; readonly languages?: readonly ResponseSummaryLanguageAggregate[]; readonly skipReasons?: readonly TSkipReason[]; readonly customData?: TCustomData; } interface ResponseSummaryLabels { readonly languages?: string; readonly answered?: string; readonly unanswered?: string; readonly skipReasons?: string; readonly options?: string; readonly statistics?: string; readonly average?: string; readonly minimum?: string; readonly maximum?: string; readonly total?: string; readonly checked?: string; readonly unchecked?: string; readonly percentage?: string; } declare function toResponseSummary(summary: ResponseSummaryInput, version: FormVersionRecord | FormSchema, sourceLanguage: string): ResponseSummaryData; export { type ResponseSummaryData, type ResponseSummaryInput, type ResponseSummaryLabels, type ResponseSummaryLanguageAggregate, type ResponseSummaryQuestion, type ResponseSummarySkipReason, toResponseSummary };