import { isPortrait } from "./common.ts"; import { type CrowdStands } from "./crowd.ts"; import { type SoccerPitchId, type SoccerSize } from "./surfaces/soccer-spec.ts"; import type { Colors, Language, ScoreOptions, Sport, SurfaceOptions } from "./types.ts"; export { isPortrait }; /** The sports that can be drawn, in the order a menu lists them. */ export declare const SPORTS: readonly Sport[]; /** The CSS custom property each colour of `Colors` sets. */ export declare const COLOR_PROPERTIES: Readonly>; /** The words of a status in a language: a standard one is translated, any other text is kept as it is. */ export declare function statusLabel(status: string | undefined, language?: Language): string | undefined; /** * Who is ahead in a score drawing, as the drawing's emphasis. `auto` (the default) picks the leader once the status is * a final one; `leader` picks the leader of any game; a level game has none unless both teams have a penalty shoot-out * score (`penalties`) and the shoot-out was not level; a score that is not a number has none. */ export declare function winnerOf(o: Pick & { sport?: Sport; }): "home" | "away" | "none"; /** * The words of a status, with the penalty shoot-out beside them when both teams have one: "Final/AET", or * "Final ยท 4-2 pens" (the shoot-out score in the order of the drawing's sides: the home team's first when it is on the left, which is * the default for soccer and the other sports that list the home team first). Pass `sport` (and `league`) for the sport's default; with * neither, the away team's is first unless `homeSide` is left. */ export declare function statusText(o: Pick & Partial>, language?: Language): string | undefined; /** The pitch the options ask for: a `pitch` of the caller's, else the size a `ground` publishes, else none (the international pitch). */ export declare function pitchOf(o: SurfaceOptions): SoccerPitchId | SoccerSize | undefined; /** A drawing's title and description, in a language. */ export declare function describe(o: SurfaceOptions | ScoreOptions): { title: string; description: string; }; /** * Draw a surface, or a score on a surface, as an SVG string. With `home` and `away` it is a score; without them, the * bare surface. The same options always give the same string. * @example * ```ts * import { drawKyogijo } from "@johnmorrisdotca/kyogijo-stadiums"; * const svg = drawKyogijo({ * sport: "nhl", * away: { name: "USA", abbr: "USA", score: 3, color: "#1c3f7a" }, * home: { name: "Canada", abbr: "CAN", score: 2, color: "#d52b1e" }, * status: "final-ot", * }); * console.log(svg.startsWith(" ring.id).join(" "), stands?.shape, stands?.stadium); * // lower upper bowl purpose * ``` */ export declare function crowdStands(o: SurfaceOptions): CrowdStands | undefined;