import type { ReplayController } from "./replay.control.ts"; import { type FollowRunner } from "./replay.follow.ts"; import type { ReplayLook, ReplayState, ReplayTimeline } from "./replay.types.ts"; import type { KyogijoWords } from "./strings.core.ts"; import type { ScoreOptions, SurfaceOptions } from "./types.ts"; /** The buttons' own rules, added to the replay's stylesheet: a word beside each icon. */ export declare const FOLLOW_STYLE: string; /** The buttons of the follow camera, for the replay's bar, and how to make them say the state. */ export interface FollowControls { parts: HTMLElement[]; sync(state: Readonly): void; } /** * The buttons: Action and Puck (Ball for a game with a ball) press in and out, one at a time, and pressing the one that is in turns the camera off (held or not); Resume shows only while the * reader's own turn or zoom holds the camera. */ export declare function followControls(doc: Document, words: KyogijoWords["replay"], controller: ReplayController, timeline: ReplayTimeline): FollowControls; /** What the flat camera is given: the drawing now, what it was drawn from, the timeline and how its frames are drawn. */ export interface FlatFollowSource { svg(): SVGSVGElement | null; options(): SurfaceOptions | ScoreOptions; timeline: ReplayTimeline; look: ReplayLook; now(): number; } /** * The camera of a flat replay: it shows the part of the drawing the shot frames by writing the drawing's `viewBox`, one attribute, and puts the whole drawing back when it is off. A drawing * written again (a theme, a score) is shown at the same shot by `again`. */ export declare function flatFollow(source: FlatFollowSource): FollowRunner;