import type { Sport } from "./types.ts"; /** How excited a crowd is, from a near-empty room to a roar. */ export type SoundLevel = "quiet" | "murmur" | "engaged" | "loud" | "roar"; /** The levels, quietest first. */ export declare const SOUND_LEVELS: readonly SoundLevel[]; /** * The layers of a crowd bed, each a loop the engine keeps running while the sound is on, and turns up and down: `room` the air of the building, `murmur` people talking, `applause` hands, `roar` * a crowd's voice together. The pool's bed has `water` as well. */ export type SoundLayer = "room" | "murmur" | "applause" | "roar" | "water"; /** The voices a cue may use. Each is a short sound the engine makes in the browser, or plays from a file a page gives (`files`). */ export type SoundVoice = /** An arena's goal horn: one long blast of a low chord, never a tune. */ "horn" /** A referee's pea whistle, with its trill. */ | "whistle" /** A long whistle and two short ones before it: the end of a game in football and the field games. */ | "whistle-end" /** A scoreboard's buzzer at the end of a period. */ | "buzzer" /** A ring's bell, struck three times. */ | "bell" /** A starting gun. */ | "gun" /** The electronic start of a swimming race. */ | "beep" /** A crowd that rises for a moment: "ooh", a near miss. */ | "ooh" /** A cheer of a few people, for a point in a quiet hall. */ | "cheer" /** Applause that comes and goes. */ | "applause" /** The whole crowd's roar, swelling and settling over some seconds: a goal. */ | "swell"; /** What a kind of venue sounds like: the bed's layers and the room they are heard in. */ export interface SoundBed { /** The kind of venue, as in `SOUND_BEDS`. */ id: SoundBedId; /** Indoors (an arena, a hall, a pool) or out (a stadium, a ballpark, a track) when the venue says nothing of its roof. */ indoor: boolean; /** How long the room rings, in seconds, for a venue of `seats` people: a full arena is about 2 s, a stadium in the open about 0.6 s. */ decay: number; /** The people the bed is made for: a venue of other size is louder or quieter than the bed by the share of people (the context's `seats`). */ seats: number; /** The layers the bed has. */ layers: readonly SoundLayer[]; /** The crowd levels it offers, quietest first: a dojo for kyudo has no roar. */ levels: readonly SoundLevel[]; } /** The kinds of venue that have a bed. */ export type SoundBedId = "arena" | "stadium" | "ballpark" | "hall" | "pool" | "dojo" | "ring" | "track"; /** The crowd beds, one for each kind of venue. */ export declare const SOUND_BEDS: Readonly>; /** The kinds of moment a cue answers. A timeline's own event kinds are read into these by `cueKindOf`. */ export type CueKind = "goal" | "point" | "shot" | "whistle" | "period-start" | "period-end" | "game-end" | "start" | "finish" | "round-start" | "round-end"; /** The kinds of moment, in the order the docs list them. */ export declare const CUE_KINDS: readonly CueKind[]; /** A sport's sound: the bed of its usual venue and what plays for each kind of moment (nothing, for a kind it does not list). */ export interface SoundSet { /** The set's id: the sport's family (`hockey`, `soccer`, `court`, ...). */ id: string; bed: SoundBedId; cues: Readonly>>; /** The crowd levels this sport offers, when fewer than its bed's (kyudo: a still hall). */ levels?: readonly SoundLevel[]; } /** The sound sets, by family: a sport takes its family's (`SOUND_OF_SPORT`). */ export declare const SOUND_SETS: Readonly>; /** Which set each sport takes: every surface the package draws has one. */ export declare const SOUND_OF_SPORT: Readonly>;