import { type JudgingPlan, type JudgingSetting } from "./judging.ts"; import type { JudgingResolved } from "./judging.types.ts"; import type { MBox } from "./budo/plan.ts"; export declare const clamp: (v: number, lo: number, hi: number) => number; /** One mat's surface as markup: the drawing's own, without its title, its stylesheet and its apron. */ export declare function inner(svg: string): { body: string; style: string; look: string | undefined; }; /** The numbers a drawing is laid out in, all in the picture's own units and proportional to its width, so that the picture is the same at any width. */ export interface Metrics { k: number; pad: number; gap: number; titleH: number; panelGap: number; badge: number; rowPad: number; role: number; nameMax: number; nameMin: number; cardMin: number; } export declare const metricsOf: (width: number) => Metrics; /** The plan of one mat at (x, y) in a box: the surface moved and clipped to the region shown, with a badge or a card at every seat. */ export declare function planMarkup(mat: JudgingResolved, surface: { body: string; }, geom: JudgingPlan, region: MBox, box: { x: number; y: number; w: number; h: number; }, m: Metrics, setting: JudgingSetting, clip: string, frame?: boolean): { markup: string; width: number; height: number; fits: boolean[]; x: number; y: number; scale: number; }; /** Each mat's surface, drawn by the package: once for its stylesheet and its look, then once for each mat (its ids differ). `mode` `chart` draws none. */ export declare function surfacesOf(setting: JudgingSetting, o: { css?: "embed" | "none"; }, gid: string, drawn?: boolean): { surfaces: { body: string; }[]; style: string; look: string | undefined; };