import React from 'react';
import { ChoiceGroupChoice, ExamAnswer, GradingStructure, QuestionId, Score } from '../../index';
export interface ResultsContext {
    answersByQuestionId: Record<QuestionId, ExamAnswer>;
    gradingStructure: GradingStructure;
    scores: Score[];
    gradingText?: string;
    totalScore: number;
    singleGrading?: boolean;
    showAnnotationsAndZoomImages?: boolean;
}
export declare const ResultsContext: React.Context<ResultsContext>;
export declare const withResultsContext: (Component: React.ComponentType<any>) => React.ComponentType<any>;
export declare function findMultiChoiceFromGradingStructure(gradingStructure: GradingStructure, id: number): ChoiceGroupChoice | undefined;
export declare function findScore(scores: Score[], questionId: number): Score | undefined;
export declare function calculateQuestionsTotalSumScore(topLevelQuestions: Element[], gradingStructure: GradingStructure, scores: Score[], answersByQuestionId: Record<QuestionId, ExamAnswer>): number;
export declare function calculateQuestionSumScore(questionElement: Element, gradingStructure: GradingStructure, scores: Score[], answersById: Record<QuestionId, ExamAnswer>): number;
//# sourceMappingURL=ResultsContext.d.ts.map