/** A widget: its markup, centred on the origin, and the box it fills. */ export interface Widget { markup: string; w: number; h: number; } /** A triangle pointing at `angle` degrees (0 right, 90 down) centred on a point, `r` from its middle to its tip. */ export declare const triangle: (cx: number, cy: number, r: number, angle: number, cls: string) => string; /** The pill: a line of text on a rounded plate, with a dot of the benefiting team's colour at its head when `dot` names its side. */ export declare function pillWidget(label: string, size: number, dot?: "left" | "right"): Widget; /** A football tag: the down and distance, with the yard line beneath it and an arrow for the way the offence is going (`angle`, 0 right, 90 down, 180 left, -90 up). */ export declare function tagWidget(main: string, sub: string | undefined, size: number, angle?: number): Widget; /** What a scorebug shows; a part left out is not drawn. */ export interface Scorebug { bases?: readonly [boolean, boolean, boolean]; outs?: number; inning?: number; half?: "top" | "bottom"; balls?: number; strikes?: number; } /** * The classic scorebug: a diamond whose occupied bases are lit, the outs as three dots under it, the inning with an arrow for its half, and the count. `size` is a letter's height; * the diamond is 3.4 of them across. `bg` draws the plate behind it (a badge has its own). */ export declare function scorebugWidget(s: Scorebug, size: number, bg: boolean): Widget; /** What a shootout strip is given: the rounds as `[away, home]`, with `null` for an attempt not yet taken, the rounds after the third being sudden death, and the two rows' labels. */ export interface ShootoutStrip { rounds: readonly (readonly [boolean | null, boolean | null])[]; goals: readonly [number, number]; sudden: number; labels: readonly [string, string]; /** The two rows' sides on the drawing, for the colour of their labels. */ sides?: readonly ["left" | "right", "left" | "right"]; /** The short word over the sudden-death rounds. */ suddenWord: string; } /** The shootout as two rows of dots, a goal filled (●) and a miss hollow (○), the rounds not yet taken a faint speck, with each team's goals at the end. */ export declare function shootoutWidget(s: ShootoutStrip, size: number, bg: boolean): Widget;