import type { MultiFit, MultiLayout, MultiNeeds, MultiOptions, MultiSpec, MultiVenue } from "./multi.types.ts"; import type { Language } from "./types.ts"; /** The most rows or columns a layout takes. */ export declare const MULTI_MAX = 12; /** A number as a language writes it: thousands separated, two decimals at most (`3,234.5`). */ export declare const multiNumber: (value: number, language?: Language) => string; /** * The layout the options ask for: a preset or a layout of the caller's own, with the grid and the stagger it is given in place of its own. * @throws Error for a preset that is not one, an option that is not a whole number or a share, or neither a preset nor a layout. */ export declare function specOf(o: Pick): MultiSpec; /** * A layout laid out: where each surface stands, the floor it needs and the empty places for the event's own words and marks, all in feet from the top left corner of the floor (and the floor's size * and what the layout needs in metres). * @example * ```ts * import { multiLayout } from "@johnmorrisdotca/kyogijo-stadiums/multi"; * const layout = multiLayout({ preset: "tabletennis-4" }); * console.log(layout.cells.length, layout.needs.length, layout.needs.width); * // 4 28 14 * ``` */ export declare function multiLayout(options?: Pick): MultiLayout; /** A hall as the caller gives it, or a key of `MULTI_VENUES`. @throws Error for a key that is not one, a size that is not positive. */ export declare function venueOf(venue: MultiOptions["venue"]): MultiVenue | undefined; /** * Whether a layout fits a hall's floor. A floor that is a rectangle takes the layout as it is or turned a quarter; an octagon takes it if its corners are inside; a floor of which only the area is published * can only be compared by area, and says so (`fits` is `null` when the area is enough, because the shape may still not take it). * @example * ```ts * import { multiFit, multiLayout } from "@johnmorrisdotca/kyogijo-stadiums/multi"; * const four = multiFit(multiLayout({ preset: "curling-1x4" }), "nhl-ice-pad"); * const six = multiFit(multiLayout({ preset: "curling-1x4", columns: 6 }), "nhl-ice-pad"); * console.log(four.fits, four.turned, six.fits); * // true true false * ``` */ export declare function multiFit(layout: MultiLayout, venue: MultiOptions["venue"]): MultiFit; /** The sentence that says how a layout sits in a hall, in a language. */ export declare function fitSentence(fit: MultiFit, language?: Language): string; /** The size of a layout as words, in a language: `28 by 14 metres (392 square metres)`; along the layout first, then across it. */ export declare const needsSentence: (needs: MultiNeeds, language?: Language) => string;