import { SubmissionType } from "./responses"; /** * Matches anything that looks like e.g. ___BLANK___ or _____Blank_____. */ export declare const BLANK_PATTERN: RegExp; /** * Matches anything that looks like e.g. [[_____BOX______\n\n\n\n\n]] or [[Box\n\n]]. * Those are real newlines, and at least 1 is required. */ export declare const BOX_PATTERN: RegExp; export declare function numBlanksAndBoxes(content: string): number; export declare function count_char(str: string, c: string): number; /** * Precondition: submission (if provided) is a valid submission encoding for the given * FITB response. That is, the number of strings in the submission matches the * number of blanks and boxes in the content. */ export declare function createFilledFITB(content: string, submission?: SubmissionType<"fill_in_the_blank">, blankRenderer?: typeof DEFAULT_BLANK_RENDERER, boxRenderer?: typeof DEFAULT_BOX_RENDERER, encoder?: (s: string) => string): string; declare function DEFAULT_BLANK_RENDERER(submission_placeholder: string, length: number): string; declare function DEFAULT_BOX_RENDERER(submission_placeholder: string, lines: number, width: number): string; export declare function findFITBInputElements(response_elem: JQuery): JQuery; export {};