import { Widget } from '../models/Widget'; export declare class DashboardsWidgetService { private widgets; constructor(); /** * Registers a widget into a global widgets collection. * @param widget The widget to register. */ register(widget: Widget): void; /** * Removes a widget from the global widgets collection. * @param widget The widget to unregister. */ unregister(widget: Widget): void; /** * Removes all widgets from the global widgets collection. */ unregisterAll(): void; /** * Retrieves a registered widget object based on its type. * @param type The type of the widget to get. */ getWidget(type: string): Widget; /** * Retrieves all registered widget objects. */ getAllWidgets(): Widget[]; /** * Retrieves the number of all registered wdigets. */ count(): number; private exists(widget); }