import type { Chart } from 'chart.js'; /** * Singleton manager for Chart.js instances. * Tracks all created chart instances and handles proper cleanup to prevent memory leaks. */ declare class ChartInstanceManager { private instances; /** * Register a new Chart.js instance */ register(id: string, chart: Chart): void; /** * Get a Chart.js instance by ID */ get(id: string): Chart | undefined; /** * Check if an instance exists */ has(id: string): boolean; /** * Destroy a Chart.js instance by ID */ destroy(id: string): void; /** * Destroy multiple Chart.js instances by their IDs */ destroyMany(ids: string[]): void; /** * Destroy all registered Chart.js instances */ destroyAll(): void; /** * Get count of registered instances */ get count(): number; /** * Get all registered instance IDs */ getIds(): string[]; } export declare const chartManager: ChartInstanceManager; export {}; //# sourceMappingURL=chartInstanceManager.d.ts.map