import type { Unit } from "../units.ts"; import { type Span } from "./fields.ts"; import { type LeagueBase } from "./types.ts"; /** The figures of the field, in the unit of the table they are in. `null` is what a code does not have. */ export interface GaelicFigures { /** `football` or `hurling`. */ code: "football" | "hurling"; /** End line to end line, and across; the size drawn is the greatest. */ length: Span; width: Span; /** The lines across the field, in metres from each end line: 13, 20, 45 and, for hurling, 65. */ lines: number[]; /** The posts' distance apart and the crossbar's height above the ground. */ postsApart: number; crossbar: number; /** The small rectangle (14 by 4.5 m) and the large one (19 by 13 m): how far each side line stands outside a post's inside edge, and how deep it is. */ small: { outside: number; depth: number; }; large: { outside: number; depth: number; }; /** The radius of the arc on the 20 m line (centred on its middle), the radius of the football arc centred on the middle of the goal line, and the penalty point's distance from it. */ arc: number; footballArc: number | null; penaltyPoint: number | null; /** The half-way line: the length of the solid midline, and the length of the dashes marked out from it at intervals of the same length across the field. */ midline: number; dash: number; /** The width of the lines. */ lineWidth: number; } /** The field as the drawing wants it: the figures with every length in feet. */ export type GaelicSpec = GaelicFigures; /** The field's figures in feet, from the unit the Guide gives them in. */ export declare const gaelicInFeet: (figures: GaelicFigures, unit: Unit) => GaelicSpec; /** A league with a Gaelic field of its own. */ export type GaelicLeague = LeagueBase<"gaelic", GaelicFigures>; /** * The field for Gaelic football, from Rule 1 of the Official Guide Part 2 (effective 27 March 2026): 130 to 145 m by 80 to 90 m; lines across at 13, 20 and 45 m from each end line; the posts * 6.5 m apart on the end line, the crossbar 2.5 m up; the small rectangle 14 by 4.5 m (its sides 3.75 m outside the posts' inside edges) and the large one 19 by 13 m (6.25 m); a 13 m arc on * each 20 m line; for football, a 40 m arc centred on the middle of the goal line and the penalty point 11 m from it; the 10 m midline with dashes of 5 m at intervals of 5 m; lines 90 mm wide. */ export declare const GAA_FOOTBALL_FIELD: GaelicFigures; /** The field for hurling, the same field: the 65 m lines (marked "Hurling") and no football arc or penalty point. */ export declare const GAA_HURLING_FIELD: GaelicFigures; /** The Gaelic leagues, football first. */ export declare const GAELIC_LEAGUES: readonly GaelicLeague[];