import type { SurfaceOptions } from "./types.ts"; import { type Unit } from "./units.ts"; /** Text made safe for a class name or an id: letters, digits, underscores, spaces and hyphens. */ export declare const safeClass: (text: string | undefined) => string; /** * The title and the description of a drawing, as the first thing in it: the accessible name (`aria-labelledby` points at them). They sit in a `` so that they are never a tooltip: a `` that is a direct child of * the root makes the browser pop a box with its words up wherever the pointer is over the drawing, which on a mat reads as a label drawn on top of it. */ export declare const metaMarkup: (titleId: string, title: string, descId: string, description: string) => string; /** The prefix of the ids inside a drawing: the `id` option, or a hash of the options, so that the same call gives the same drawing. */ export declare const drawingId: (o: SurfaceOptions) => string; /** True when a drawing with these options lies in portrait. */ export declare function isPortrait(o: Pick<SurfaceOptions, "orientation" | "aspect"> & { sport?: SurfaceOptions["sport"]; }): boolean; /** The unit the options' lengths are in: `units`, or feet when it is missing. A unit that is not one is an error, not feet. */ export declare function lengthUnit(o: Pick<SurfaceOptions, "units">): Unit; /** The fence the options give, with each distance in feet. */ export declare function feetFence(fence: SurfaceOptions["fence"], unit: Unit): SurfaceOptions["fence"];