import { ComponentFactoryResolver, ViewContainerRef, ComponentRef } from '@angular/core'; import { ComponentType } from '@angular/cdk/portal'; import * as i0 from "@angular/core"; export interface CustomReportRegistryDefinition { type: string; component: ComponentType; category?: string; name?: string; description?: string; } export declare class CustomReportsRegistry { private _factoryResolver; private readonly _components; constructor(_factoryResolver: ComponentFactoryResolver); /** * Register a component with the registry * @param config Component configuration */ registerComponent(config: CustomReportRegistryDefinition): void; /** * Register multiple components at once * @param configs Array of component configurations */ registerComponents(configs: CustomReportRegistryDefinition[]): void; /** * Render a component by type into a ViewContainerRef * @param type Component type identifier * @param vcr ViewContainerRef to render into */ renderComponent(type: string, vcr: ViewContainerRef): ComponentRef; /** * Load a component into a ViewContainerRef * @param config Component configuration * @param vcr ViewContainerRef to render into */ loadComponent(config: CustomReportRegistryDefinition, vcr: ViewContainerRef): ComponentRef; /** * Check if a component is registered * @param type Component type identifier */ hasComponent(type: string): boolean; /** * Get component configuration by type * @param type Component type identifier */ getComponent(type: string): CustomReportRegistryDefinition | undefined; /** * Get all registered component types */ getComponentTypes(): string[]; /** * Get all registered components */ getAllComponents(): CustomReportRegistryDefinition[]; /** * Get components by category * @param category Category to filter by */ getComponentsByCategory(category: string): CustomReportRegistryDefinition[]; /** * Get all unique categories */ getCategories(): string[]; /** * Unregister a component * @param type Component type identifier */ unregisterComponent(type: string): boolean; /** * Clear all registered components */ clearComponents(): void; /** * Get the total number of registered components */ getComponentCount(): number; /** * Search components by name or type * @param searchTerm Search term */ searchComponents(searchTerm: string): CustomReportRegistryDefinition[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }