import type { MultiOptions } from "./multi.types.ts"; import { type PresetTable } from "./turn.camera.ts"; import { type KyogijoTurn } from "./turn.dom.ts"; import { type TurnModel, type TurnSettings } from "./turn.model.ts"; import type { Sport } from "./types.ts"; /** How high a surround stands: the ITTF's "about 75 cm" (Handbook 3.2.3.3). A layout of another sport with surrounds has the same (ours: no other rulebook is read for it). */ export declare const SURROUND_HEIGHT: number; /** * The viewpoints of a layout. Overhead, broadcast and the low corner are a single surface's (`TURN_PRESETS`); the end-on view of a net sport looks along its surfaces' length, where the nets are seen whole, as `NET_PRESETS` does. All are turned a quarter where * the floor or the surfaces stand across the picture, so that the long way of the floor runs across the screen. `floor` is the picture's frame (the hall's, turned if the hall asks) and `lengthAlongX` says whether the surfaces' length runs along its x. */ export declare function multiPresets(sport: Sport, floor: { w: number; h: number; }, lengthAlongX: boolean): PresetTable; /** * A tournament layout as a 3D model: the floor is the layout's flat drawing, and on it stand each surface as it stands on its own page, the surrounds, the umpires' chairs and score tables, the scoreboards and, with `stadium`, the stands * of the hall. A `TurnModel` like any other: `turnMarkupOf` and `mountMultiTurn` make a view of it. */ export declare function buildMultiTurn(options: MultiOptions, settings?: TurnSettings): TurnModel; /** * Mount a tournament layout as a 3D view in a container: the same view as `mountKyogijoTurn`'s, with the controls, the pointer, the keys and the auto-turn of every 3D view, over the layout's floor with each surface standing on it. * @example * ```ts no-run * import { mountMultiTurn } from "@johnmorrisdotca/kyogijo-stadiums/multi"; * const view = mountMultiTurn(document.querySelector("#hall")!, { preset: "tabletennis-4", stadium: true }, { preset: "broadcast" }); * view.set({ yaw: 40 }); * ``` */ export declare function mountMultiTurn(host: HTMLElement, options: MultiOptions, settings?: TurnSettings): KyogijoTurn; /** A tournament layout as the markup of a 3D view, still until a page's script makes it turn: pure, so a server can make it. */ export declare function multiTurnMarkup(options: MultiOptions, settings?: TurnSettings): string;