import type { CircuitDrawing } from "./circuits.draw.ts"; import type { carRadius, carsMarkup } from "./circuits.race.draw.ts"; import type { mountRaceIn } from "./circuits.race.dom.ts"; import type { raceAt } from "./circuits.race.moment.ts"; import type { simulateRace } from "./circuits.race.ts"; import type { RaceWords } from "./circuits.race.words.ts"; import type { CircuitPlan } from "./circuits.ts"; import type { Circuit, CircuitOptions } from "./circuits.types.ts"; import type { CircuitWords } from "./circuits.words.ts"; import type { Language } from "./types.ts"; import type { Upright } from "./turn.kit.ts"; /** The circuits' code a district uses. */ export interface CircuitSupport { circuitOf: (id: string) => Circuit; circuitPlan: (circuit: Circuit) => CircuitPlan; circuitDrawing: (options: CircuitOptions) => CircuitDrawing; circuitUprights: (drawn: CircuitDrawing, thin: number) => Upright[]; words: Readonly>; /** A race on the circuit (`mountDistrictRace`, `drawDistrictRace`): the simulation, its moments, its cars' markup and its view in a page. */ race: { simulateRace: typeof simulateRace; raceAt: typeof raceAt; carsMarkup: typeof carsMarkup; carRadius: typeof carRadius; mountRaceIn: typeof mountRaceIn; words: Readonly>; }; } /** Fill the table: `circuits.held.ts` does it when it is imported. */ export declare function holdCircuits(support: CircuitSupport): void; /** The circuits' code, or an error that says how to have it. */ export declare function circuitSupport(): CircuitSupport; /** Whether the circuits are held (the district entry, or the lean district after `loadCircuits()`). */ export declare const circuitsHeld: () => boolean;