import { ChartType, Plugin } from 'chart.js'; import * as i0 from "@angular/core"; export declare class ChartPluginsRegistry { private readonly _plugins; /** * Register a plugin or multiple plugins. * * @param {string | Record>} key - The key of the plugin to register or an object containing multiple plugins. * @param {Plugin} [plugin] - The plugin instance to register (if `key` is a string). * @returns {void} */ register(key: string, plugin: Plugin): void; register(plugins: Record): void; /** * Returns all registered chart plugins as a read-only map. * * @returns {ReadonlyMap>} A map of plugin keys to plugin instances. */ getAll(): ReadonlyMap>; /** * Check if a plugin exists with the given key * @param key The plugin key to check * @returns True if the plugin exists, false otherwise */ has(key: string): boolean; /** * Get a plugin by its key * @param key The key of the plugin to retrieve * @returns The plugin instance or undefined if not found */ get(key: string): Plugin; /** * Remove a plugin by its key * @param key The key of the plugin to remove * @returns True if the plugin was removed, false if it didn't exist */ delete(key: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }