import { AssignedQuestion, GradedQuestion } from "../core/assigned_exams"; import { ResponseKind } from "../response/common"; import { QuestionGrader, ImmutableGradingResult } from "./QuestionGrader"; export type FreebieGradingResult = ImmutableGradingResult; export type FreebieGraderSpecification = { readonly grader_kind: "freebie"; /** * Whether or not blank submissions earn points. If this option is * not specified, it is interpreted as false. */ readonly allow_blanks?: boolean; /** * An optional message that will be shown to students. */ readonly message?: string; }; /** * A grader that gives points to all submissions. Whether or not blank * submissions earn points can be configured. * @template QT May be any response type */ export declare class FreebieGrader implements QuestionGrader { readonly spec: FreebieGraderSpecification; readonly t_response_kinds: ResponseKind; constructor(spec: FreebieGraderSpecification); scale(new_points_possible: number): this; isGrader(responseKind: T): this is QuestionGrader; prepare(): void; grade(aq: AssignedQuestion): FreebieGradingResult; pointsEarned(gr: FreebieGradingResult): number; renderReport(aq: GradedQuestion): string; annotateResponseElem(gq: GradedQuestion, response_elem: JQuery): void; renderStats(aqs: readonly AssignedQuestion[]): string; renderOverview(gqs: readonly GradedQuestion<"multiple_choice">[]): string; }