import type { GoalStyle, StripePattern } from "../types.ts"; import { type SoccerLayout, type SoccerSpec } from "./soccer-spec.ts"; import { type BuildOptions, type Surface } from "./surface.ts"; /** What the soccer builder is given besides the usual. */ export interface SoccerBuild { spec: SoccerSpec; layout: SoccerLayout; /** Show only one half: `left` or `right`. */ half?: "left" | "right"; pattern: StripePattern; goals: GoalStyle; /** Draw corner flags. */ flags: boolean; /** The data frame to put an empty, transformed group for: the matrix that maps the provider's numbers to metres. */ frame?: { id: string; matrix: [number, number, number, number, number, number]; }; } /** * The soccer pitch: the turf and its mown stripes; the touchlines and goal lines; the halfway line, centre circle and * mark; both penalty areas, goal areas, marks and arcs; the corner arcs; the goals; and the flags and the corner-kick * marks off the field. Drawn in metres inside a group that scales them to feet, as every surface lies in feet. */ export declare function soccer(b: SoccerBuild, o: BuildOptions): Surface;