import type { ReplayLook, ReplayTimeline } from "./replay.types.ts"; import type { Language } from "./types.ts"; /** A place on the rink, in feet from its top left corner as the drawing has it wide: along the rink (0 to 200) and across it (0 to 85). */ type P = readonly [number, number]; /** A skater's way: where he is at a time (seconds), from one waypoint to the next. */ type Way = readonly (readonly [number, number, number])[]; /** How long the play runs, and how long it is held at the end (the goal's marks still on the ice) before it starts again. */ export declare const PLAY_SECONDS = 10; export declare const PLAY_HOLD = 1.5; /** The seconds of the whole run, the play and the hold: what the loop's period is. */ export declare const PLAY_PERIOD: number; /** The moment a still of the play (for a reader who prefers reduced motion) is taken at: the shot has just been taken. */ export declare const PLAY_STILL = 6.4; /** The seconds the dots fade in and out at the ends of a run, so that the play does not jump back to its start in view. */ export declare const PLAY_FADE = 0.5; /** A point of a way at a time: a cubic through the waypoints with the slope between the neighbours at each, so that a skater never stops or turns on a corner. */ export declare function at(way: Way, t: number): P; /** The puck at a time. */ export declare function puckAt(t: number): P; /** The play, as a replay's timeline in the surface's own feet. It is made once. */ export declare const ILLUSTRATIVE_PLAY: ReplayTimeline; /** How the play is drawn: a short trail behind the puck, the dots large enough to see from the stands, events that stay a moment. */ export declare const PLAY_LOOK: ReplayLook; /** Where a moment of a run is in the play, looping: `seconds` after the run began, brought into one period. */ export declare const playMoment: (seconds: number) => number; /** How much of the play shows at a moment of a run: it fades in at the start and out at the end of each run. 0 to 1. */ export declare function playAlpha(moment: number): number; /** * The play at a moment of a run, as the layers' SVG (a `g.ky-layers` in the drawing's own feet, to go inside an `svg.kyogijo` with the floor's viewBox): the dots with their numbers, the puck and its trail, and the events that are on * the ice at that time, drawn by the replay's own layers. The same moment always gives the same string. */ export declare function playMarkup(moment: number, options: { id: string; language?: Language; }): string; export {};