import { Type, InjectionToken } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { ComponentRegisterService } from './component-register.service'; import { ExtensionLoaderService } from './extension-loader.service'; import * as i0 from "@angular/core"; export declare function extensionJsonsFactory(): any[]; export declare const EXTENSION_JSONS: InjectionToken; export declare function provideExtensionConfig(jsons: string[]): { provide: InjectionToken; useValue: string[]; multi: boolean; }; export declare class ExtensionService { protected loader: ExtensionLoaderService; protected componentRegister: ComponentRegisterService; protected extensionJsons: string[]; protected config: any; configPath: string; pluginsPath: string; features: Array; authGuards: { [key: string]: Type<{}>; }; protected onSetup$: BehaviorSubject; setup$: import("rxjs").Observable; constructor(loader: ExtensionLoaderService, componentRegister: ComponentRegisterService, extensionJsons: string[]); /** * Gets features by key. * @param key Key string, using dot notation * @returns Features array found by key */ getFeature(key: string): any[]; getElements(key: string, fallback?: Array): Array; /** * Adds one or more new auth guards to the existing set. * @param values The new auth guards to add */ setAuthGuards(values: { [key: string]: Type<{}>; }): void; /** * Adds one or more new components to the existing set. * @param values The new components to add * @deprecated This method is deprecated for column components and will be removed in a future version. * Use `ColumnRendererRegistryService.register()` instead for registering column components. * * @example * // For columns (deprecated) * this.setComponents({ 'common.components.text': TextComponent, 'number': NumberComponent }); * * // For columns (recommended - single) * this.columnRegistry.register({ * name: 'Text Column', * type: 'common.text', * category: 'basic', * component: TextComponent * }); * * // For columns (recommended - multiple) * this.columnRegistry.register([ * { * name: 'Text Column', * type: 'common.text', * category: 'basic', * component: TextComponent * }, * { * name: 'Number Column', * type: 'common.number', * category: 'basic', * component: NumberComponent * } * ]); * * // For viewer components (still supported) * this.setComponents({ 'viewer.components.pdf': PdfViewerComponent }); */ setComponents(values: { [key: string]: Type<{}>; }): void; /** * Retrieves one or more auth guards using an array of ID values. * @param ids Array of ID value to look for * @returns Array of auth guards or empty array if none were found */ getAuthGuards(ids: string[]): Array>; /** * Retrieves a registered extension component using its ID value. * @param id The ID value to look for * @returns The component or null if not found */ getComponentById(id: string): Type; /** * Runs a lightweight expression stored in a string. * @param value String containing the expression or literal value * @param context Parameter object for the expression with details of app state * @returns Result of evaluated expression, if found, or the literal value otherwise */ runExpression(value: string | {}, context?: any): {}; private evaluateExpression; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }