import type { renderLayers } from "./layers.ts"; /** The parts there are, by name, each with the function the drawing calls. */ export interface DrawParts { /** The data laid over a surface (`options.layers`): shots, heat maps, tracks, lineups, legends. */ layers: typeof renderLayers; } /** Hold a part for the drawing: what `full.ts` does for each part there is. */ export declare function providePart(name: K, feature: DrawParts[K]): void; /** Whether a part is held. */ export declare const hasPart: (name: keyof DrawParts) => boolean; /** A part, for a drawing whose options ask for it (`asked` names the option); throws, saying how to have it, where it is not held. */ export declare function partOf(name: K, asked: string): DrawParts[K];