import type { StageId } from "./flythrough.path.ts"; import { type FlythroughWords } from "./flythrough.words.ts"; import type { Language } from "./types.ts"; /** * A map drawn by chizu as a layer: its opening tag is rewritten so that it fills its box whatever the box's shape (`preserveAspectRatio="none"`: the layer is given a viewBox that is true to the ground, and the * box a square), is hidden from a screen reader (the stage says what it shows) and keeps its own `viewBox` to start from. The rest, the style and the shapes, is left as drawn. A map with text in it would be * stretched with it, so the text is taken out: the stage's words are HTML. */ export declare function mapMarkup(svg: string): string; /** * The map to start from when none is given: the sea and a graticule (a line for every five degrees of longitude and of latitude) round the arena, in metres from it, on the plane that is true to the ground * there. It shows where on the earth the camera is and how far it has come, and nothing more. */ export declare function graticuleMarkup(lat: number, reach?: number): { svg: string; width: number; }; /** The lines of the site's grid as a path, in pixels: vertical and horizontal lines `spacing` apart through `(x, y)`, reaching `reach` pixels from it. Drawn in a group turned about `(x, y)`. */ export declare function gridPath(x: number, y: number, spacing: number, reach: number): string; /** What the markup is made from. */ export interface MarkupInput { id: string; language: Language; theme?: "light" | "dark"; /** The arena's name, and where it is (`Anaheim, United States`), in the page's language. */ arena: string; place: string; /** The venue's seats for ice hockey and its seating tiers, in the words of the bowl's stage (`{seats}`, `{tiers}`). */ seats?: number | string; tiers?: number | string; /** The stages flown, in order. */ stages: readonly StageId[]; /** The drawn map (already through `mapMarkup`), and whether it is chizu's (so that the credit names it). */ map: string; mapCredit: boolean; /** The inside of the site plan's svg, drawn by the mount once it knows the sizes. */ plan?: string; controls?: boolean; } /** The words of a language for the stage names: a stage's name and what is said of it. */ export declare const stageWords: (language: Language, stage: StageId, values: { arena: string; place: string; seats?: number | string; tiers?: number | string; }) => { name: string; text: string; }; /** The controls under the stage: back, play, next and a button for each stage. */ export declare function controlsMarkup(words: FlythroughWords, stages: readonly StageId[], current: StageId, playing: boolean): string; /** The whole fly-through as markup. */ export declare function flythroughMarkup(input: MarkupInput): string;