import type { ReplayController } from "./replay.control.ts"; import { type FollowShot } from "./replay.follow.ts"; import type { ReplayChange, ReplayLook, ReplayTimeline } from "./replay.types.ts"; import type { Aim } from "./turn.dom.ts"; import type { TurnModel } from "./turn.model.ts"; import type { TurnInternals } from "./turn.replay.dom.ts"; import type { ScoreOptions, SurfaceOptions } from "./types.ts"; /** * What a 3D view looks at for a shot: the shot's middle as a point of the floor in the scene's pixels from its middle, and the zoom on top of the view's. The scene at a zoom of 1 holds more * than the surface (the boards, the stands): the zoom is worked out against how much more, so that the closest shot frames the same share of the surface as a flat drawing's. */ export declare function aimOf(shot: FollowShot, model: Pick, surface: { w: number; h: number; }): Aim; /** What `turnFollow` gives back: the paint the replay calls on each change of its clock, and `destroy`. */ export interface TurnFollow { paint(change: ReplayChange): void; destroy(): void; } /** The camera of a replay on a 3D view. `floor` is the options the floor is drawn with (the replay's), or `undefined` before it is laid. */ export declare function turnFollow(view: TurnInternals, controller: () => ReplayController, timeline: ReplayTimeline, look: ReplayLook, floor: () => SurfaceOptions | ScoreOptions | undefined): TurnFollow;