import { type LonLat } from "./venues.geo.ts"; /** How a gate is known: `documented` is what a source cited with it says; `plausible` is ours. */ export type GateBasis = "documented" | "plausible"; /** What is said of a venue's gate: the way it faces, and what is read from where. */ export interface GateFact { /** A key that is the same on every run: `south`, `south-west-corner`. */ id: string; /** The bearing of the gate's outward normal, degrees clockwise from north, 0 to under 360. */ bearing: number; /** The name where a source gives one (`Gate G`); a plain description of where it is otherwise. */ name?: { en: string; ja: string; }; basis: GateBasis; read: string; } /** A gate, placed on a venue's outline. */ export interface Gate { /** `bc-place:south`: the venue's id and the gate's. */ key: string; venue: string; id: string; name: { en: string; ja: string; }; /** Where it stands on the outline, `[longitude, latitude]`. */ at: LonLat; /** The bearing of its outward normal, degrees clockwise from north: the way a queue at it runs. */ bearing: number; basis: GateBasis; read: string; } /** * The facts of each venue's gates. BC Place: the English Wikipedia article (revision 1372065649) says a tear in the old roof was "close to Gate G on the south side where the roof meets the top of the concrete bowl", so there is a * Gate G on the south side (documented); the other seven are ours, one to each side of the building, on the street sides the brief names (Pacific Boulevard to the south, Robson and Beatty Streets). Rogers Arena: the brief's corner * entrance plazas on the Pat Quinn Way side, the south front and the two south corners, and one at the north-west, all ours. */ export declare const GATE_FACTS: Readonly>; /** The ids of the venues that have gates. */ export declare const GATE_VENUES: readonly string[]; /** The name of a gate in a language: the source's where there is one, else its side (`South-west gate`). */ export declare function gateName(fact: GateFact, language: "en" | "ja"): string; /** * The gates of a venue (`bc-place`, `rogers-arena`), each on the building's outline where a ray from the middle of the surface at its bearing meets it; empty for a venue with none. A gate whose ray misses the outline is left out * (none does for the venues here: a test holds it). * @example * ```ts * import { venueGates } from "@johnmorrisdotca/kyogijo-stadiums/district"; * const gates = venueGates("bc-place"); * console.log(gates.length, gates.filter((g) => g.basis === "documented").map((g) => g.name.en).join(", ")); * // 8 Gate G * ``` */ export declare function venueGates(id: string): Gate[];