import { type Env, type Made } from "./layers.env.ts"; import type { P } from "./layers.marks.ts"; import { type TeamTable } from "./team.common.ts"; import type { Formation, FormationLayer, FormationPlayer, FormationSport } from "./team.types.ts"; /** The sports whose surface a formation of a sport is drawn on. */ export declare const SURFACES: Readonly>; /** The formation a layer names, checked. */ export declare function formationOf(layer: FormationLayer): Formation; /** One position, placed. */ export interface Spot { id: string; name: string; /** On the surface, feet. */ at: P; /** In the formation's frame, after the line of scrimmage is moved. */ given: P; player: FormationPlayer | undefined; } /** The positions of a layer's formation on the surface, with the players of the lineup on them. */ export declare function computeFormation(layer: FormationLayer, env: Env): { formation: Formation; spots: Spot[]; unmatched: number; }; export declare function drawFormation(layer: FormationLayer, env: Env): Made; export declare function formationTables(layer: FormationLayer, env: Env): TeamTable[];