import { QualificationAnswersDocument, QuizAnswers, QuizDefinition, QuizOutcome, WhenClause } from "./onboardingQuiz.schemas"; export type ResolveNextResult = { goTo: string; } | { end: { outcome: QuizOutcome; }; }; export declare function matchesWhen(when: WhenClause, answers: QuizAnswers): boolean; export declare function resolveNext(def: QuizDefinition, stepId: string, answers: QuizAnswers): ResolveNextResult; export declare function getReachablePath(def: QuizDefinition, answers: QuizAnswers): string[]; /** Step ids visited before `targetStepId` on the reachable path (for rehydrated back navigation). */ export declare function getHistoryUntilStep(def: QuizDefinition, answers: QuizAnswers, targetStepId: string): string[]; export declare function pruneAnswers(def: QuizDefinition, answers: QuizAnswers): QuizAnswers; export declare function toAnswersDocument(def: QuizDefinition, answers: QuizAnswers): QualificationAnswersDocument; export declare function buildSummaryRows(def: QuizDefinition, answers: QuizAnswers, labels: Record): { id: string; label: string; value: string; }[];