import type { Chart, ChartData, ChartOptions, Plugin } from 'chart.js'; import { LitElement, type PropertyValues } from 'lit'; import { type NuiType } from '../../types/nui-type.js'; import { type NuiChartViewState } from './logic.js'; import type { ChartType, NuiChartEventMap } from './types.js'; export type { NuiChartEventMap }; export declare class NuiChart extends LitElement implements NuiChartViewState { type: ChartType; data: ChartData | null; options: ChartOptions; plugins: Plugin[]; width: string; height: string; unstyled: boolean; nuiType: NuiType; chartClass: string; private controller; private initGeneration; protected createRenderRoot(): DocumentFragment | HTMLElement; protected firstUpdated(): void; protected updated(changed: PropertyValues): void; disconnectedCallback(): void; refresh(mode?: 'default' | 'none' | 'active'): void; reinit(): void; getChart(): Chart | null; generateLegend(): string; private initChart; render(): import("lit-html").TemplateResult; } export interface NuiChart { addEventListener( type: K, listener: (this: NuiChart, ev: NuiChartEventMap[K]) => void, options?: boolean | AddEventListenerOptions, ): void; addEventListener( type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions, ): void; removeEventListener( type: K, listener: (this: NuiChart, ev: NuiChartEventMap[K]) => void, options?: boolean | AddEventListenerOptions, ): void; removeEventListener( type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions, ): void; } declare global { interface HTMLElementTagNameMap { 'nui-chart': NuiChart; } } //# sourceMappingURL=nui-chart.d.ts.map