/** * The synthetic styles an exercise is set with (#1227): chip styles for its * number, blanks, boxes and rings; paragraph styles for its instruction, * options and items; frameless boxes. All ids start `__postext-ex`, so no * fence picks them by accident and the fallbacks skip them. */ import type { CalloutStyleConfig, ChipStyleConfig, ParagraphStyleConfig } from '../types.js'; import type { ResolvedExerciseStyle } from '../defaults/exercises.js'; export declare const EX_PREFIX = "__postext-ex"; /** The ids of an exercise style's synthetic styles. */ export declare function exerciseStyleIds(style: Pick): { frame: string; solutionBox: string; bankBox: string; instruction: string; option: string; optionUnder: string; solutionList: string; row: string; item: string; statement: string; pairs: string; key: string; text: string; number: string; level: string; icon: string; blank: string; blankAnswer: string; choice: string; choiceRing: string; tick: string; tickOn: string; rank: string; rankAnswer: string; word: string; answer: string; mark: string; markOn: string; }; export type ExerciseStyleIds = ReturnType; /** Room a label (`a)`, `ア`, `(أ)`) takes before an option's text. */ export declare function labelRoomEm(style: ResolvedExerciseStyle): number; /** The band a shaped number's box takes on its line, in ems of the text * around it (`fontEm`: the number's size in those ems): how tall it is and * how far it reaches below the baseline (#1248). The activity icons beside * it share it. */ export declare function shapedNumberBand(fontEm: number): { height: number; drop: number; }; /** The chip styles of an exercise style. */ export declare function exerciseChipStyles(style: ResolvedExerciseStyle): ChipStyleConfig[]; /** The paragraph styles of an exercise style. */ export declare function exerciseParagraphStyles(style: ResolvedExerciseStyle): ParagraphStyleConfig[]; /** The frameless box an exercise is set in when its style names none, and * the boxes of its solutions and word bank. */ export declare function exerciseBoxStyles(style: ResolvedExerciseStyle, solutionBox: string | undefined, bodySizePt: number): CalloutStyleConfig[]; //# sourceMappingURL=styles.d.ts.map