// @flow import type {Question, Answer, Config} from "../../types"; import checkAnswerCorrectness from "../../check-answer-correctness"; import zip from "lodash/fp/zip"; import trim from "lodash/fp/trim"; import pipe from "lodash/fp/pipe"; import map from "lodash/fp/map"; declare export function assertCorrect(t: any, config: {answerBoundaryLimit: number, lives: number, livesDisabled: boolean, maxTypos: number, remainingLifeRequests: number, slidesToComplete: number, starsPerAskingClue: number, starsPerCorrectAnswer: number, starsPerResourceViewed: number, version: string}, question: {content: {answers: Array>}, type: "qcm"} | {content: {answers: Array>}, type: "qcmGraphic"} | {content: {answers: Array>, matchOrder: boolean}, type: "qcmDrag"} | {content: {answers: Array>}, type: "slider"} | {content: {answers: Array>, maxTypos?: ?number}, type: "basic"} | {content: {answers: Array>, choices: Array<{type: "text" | "select"}>, matchOrder: boolean, maxTypos?: ?number}, type: "template"}, givenAnswer: Array): void; declare export function assertIncorrect(t: any, config: {answerBoundaryLimit: number, lives: number, livesDisabled: boolean, maxTypos: number, remainingLifeRequests: number, slidesToComplete: number, starsPerAskingClue: number, starsPerCorrectAnswer: number, starsPerResourceViewed: number, version: string}, question: {content: {answers: Array>}, type: "qcm"} | {content: {answers: Array>}, type: "qcmGraphic"} | {content: {answers: Array>, matchOrder: boolean}, type: "qcmDrag"} | {content: {answers: Array>}, type: "slider"} | {content: {answers: Array>, maxTypos?: ?number}, type: "basic"} | {content: {answers: Array>, choices: Array<{type: "text" | "select"}>, matchOrder: boolean, maxTypos?: ?number}, type: "template"}, givenAnswer: Array, expectedCorrections: Array): void; declare export function assertIncorrectEmptyAnswer(t: any, config: {answerBoundaryLimit: number, lives: number, livesDisabled: boolean, maxTypos: number, remainingLifeRequests: number, slidesToComplete: number, starsPerAskingClue: number, starsPerCorrectAnswer: number, starsPerResourceViewed: number, version: string}, question: {content: {answers: Array>}, type: "qcm"} | {content: {answers: Array>}, type: "qcmGraphic"} | {content: {answers: Array>, matchOrder: boolean}, type: "qcmDrag"} | {content: {answers: Array>}, type: "slider"} | {content: {answers: Array>, maxTypos?: ?number}, type: "basic"} | {content: {answers: Array>, choices: Array<{type: "text" | "select"}>, matchOrder: boolean, maxTypos?: ?number}, type: "template"}, givenAnswer: Array): void;