/** * Build the SVGPath that visually represents the given arrival data. * Exported for testing. * * @param data * @return SVGPathElement */ export declare function buildPath(data: Arrival): SVGPathElement; export interface Arrival { startAngle: number; durationDegrees: number; } /** * Utility helper function - exported for testing */ export declare function arrivalListToString(arrivalList: Arrival[]): string; /** * Utility helper function - exported for testing */ export declare function stringToArrivalList(arrivalListStr: string): Arrival[]; /** * ArrivalPie custom element */ declare class ArrivalPie extends HTMLElement { /** * Monitor the 'name' attribute for changes, see: * https://developer.mozilla.org/en-US/docs/Web/Web_Components/Custom_Elements */ static get observedAttributes(): string[]; get arrivalList(): Arrival[]; set arrivalList(val: Arrival[]); private isInitialized; constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(): void; /** * Rebuild the path elements under the arrpie-pielist group * Note: only public to fascilitate testing */ _render(): void; private _init; /** * Render a pie given an string specifying a list of arrivals */ private _renderPie; } export default ArrivalPie;