import type { PerseusStrings } from "../../../strings"; /** * Given a choice's position in the radio widget, return the corresponding * "choice letter". (For example, `getChoiceLetter(0)` is "A", * `getChoiceLetter(1)` is "B", etc.) * * All locales use English letters for the choice letters. * * @param pos - The position of the choice in the radio widget. * @param strings - The strings for the Radio widget. * @returns The choice letter for the given position. */ export declare const getChoiceLetter: (pos: number, strings: PerseusStrings) => string; interface GetOptionStatusTextProps { checked: boolean; correct: boolean; strings: PerseusStrings; } /** * Get the correct (translated) string for an option status (correct, incorrect, selected, etc.) * * @param checked - Whether the option is checked. * @param correct - Whether the option is correct. * @param strings - The strings for the Radio widget. * @returns The appropriate string for the option status. */ export declare const getOptionStatusText: ({ checked, correct, strings, }: GetOptionStatusTextProps) => string; interface GetInstructionsTextProps { multipleSelect: boolean; countChoices: boolean | null | undefined; numCorrect: number; strings: PerseusStrings; } /** * Get the (translated) instructions string for a Radio widget. * * This is the text that appears above the widget that explains * how many choices the user should select. * * @param multipleSelect - Whether the widget is a multiple-select widget. * @param countChoices - Whether the widget counts choices. * @param numCorrect - The number of correct choices. * @param strings - The strings for the Radio widget. * @returns The instructions string for the widget. */ export declare const getInstructionsText: ({ multipleSelect, countChoices, numCorrect, strings, }: GetInstructionsTextProps) => string; interface GetA11yTextProps { letter: string; checked: boolean; correct: boolean; showCorrectness: boolean; strings: PerseusStrings; } /** * Get the (translated) a11y string for a Radio widget. * * This string is provided to screen readers to help the user * understand the current state of a Radio option. * * @param letter - The letter for the choice. * @param checked - Whether the choice is checked. * @param correct - Whether the choice is correct. * @param showCorrectness - Whether the correctness is shown. * @param strings - The strings for the Radio widget. * @returns The a11y string for the Radio option. */ export declare const getA11yText: ({ letter, checked, correct, showCorrectness, strings, }: GetA11yTextProps) => string; export {};