import { type SituationRead } from "./situation.ts"; import { type Surface } from "./surfaces/surface.ts"; import type { Language, Side } from "./types.ts"; /** What a situation is drawn with. */ export interface SituationEnv { id: string; language: Language; /** The side the home team is on. */ homeSide: Side; /** The two teams' short names, when the drawing has teams. */ abbrs?: { home: string; away: string; }; /** The score's panel stands in the middle of the surface. */ plate: boolean; /** The strip under the drawing shows the situation (the pill, the scorebug or the tag), so the surface does not: a lineup's players stand where they would be. */ strip?: boolean; } /** What a situation adds to a drawing. */ export interface SituationDrawn { /** Over the surface's ground and under its lines. */ under: string; /** Over the lines and the data, under the score's panel. */ over: string; defs: string; } /** A situation drawn on a surface, or `undefined` when nothing is to be drawn. */ export declare function drawSituation(read: SituationRead, surface: Surface, env: SituationEnv): SituationDrawn | undefined; /** * A situation as the badge (and the compact card's strip) shows it in place of the picture of the surface: the markup centred on the origin of a box 76 wide, and `undefined` when there is * nothing to show. Hockey's pill, baseball's scorebug and football's tag, each shrunk to fit. */ export declare function badgeSituation(read: SituationRead, language: Language): string | undefined;