import { RootElement } from './parser/parseExamStructure';
import { ExamAnswer, QuestionId } from './types/ExamAnswer';
import { AnsweringInstructionProps } from './components/AnsweringInstructions';
export type ValidationError = ExtraAnswer | AnswerTooLong;
export interface AnswerTooLong {
    type: 'AnswerTooLong';
    displayNumber: string;
    characterCount: number;
    elementType: 'exam' | 'section' | 'question';
}
export interface ExtraAnswer extends AnsweringInstructionProps {
    type: 'ExtraAnswer';
    displayNumber: string;
}
export declare function validateAnswers(examStructure: RootElement, answersById: Record<QuestionId, ExamAnswer>): ValidationError[];
//# sourceMappingURL=validateAnswers.d.ts.map