import { type DistrictOptions } from "./district.ts"; import type { OutsideLevel } from "./outside.paint.ts"; /** What `mountDistrict` gives back. */ export interface KyogijoDistrict { readonly mode: "2d"; /** Draw again with other options (venues, fit, theme, level): the container's contents are replaced. */ update(options: DistrictOptions): void; /** Show another level of the crowd outside at once, without drawing the plan again. A district with no crowd does nothing. */ setOutside(level: OutsideLevel): void; /** What the crowd's last paint cost, in milliseconds, how many people it drew and how, or `undefined` where there is no crowd or it has not been drawn. */ outsideCost(): { ms: number; people: number; mode: string; pixels: number; } | undefined; /** The plan's SVG, or `null` after `destroy`. */ svg(): SVGSVGElement | null; /** Empty the container and stop listening. */ destroy(): void; } /** * Mount a district's plan in a container, with the crowd outside over it when `options.outside` asks for one. * @example * ```ts no-run * import { mountDistrict } from "@johnmorrisdotca/kyogijo-stadiums/district"; * const plan = mountDistrict(document.querySelector("#city")!, { venues: ["bc-place", "rogers-arena"], outside: { level: 50 } }); * plan.setOutside(100); * ``` */ export declare function mountDistrict(host: HTMLElement, options: DistrictOptions): KyogijoDistrict;