import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export interface NdfTransformerDataModel { id?: string; code?: string; arabicTitle: string; englishTitle: string; } export type NdfTransformerFunction = (keys: string[]) => Observable; export declare class NdfTransformService { private readonly _transformations; /** * Registers one or multiple transformer functions. * * @param {Record | string} keys - A record of key-function pairs or a single key. * @param {NdfTransformerFunction} [arg2] - A transformer function if registering a single key. */ register(keys: Record): void; register(key: string, fn: NdfTransformerFunction): void; /** * Retrieves a transformer function by its key. * * @param {string} key - The key of the transformer function. * @returns {NdfTransformerFunction | undefined} - The transformer function or undefined if not found. */ get(key: string): NdfTransformerFunction | undefined; /** * Retrieves all registered transformer functions. * * @returns {Map} - A map of all transformer functions. */ getAll(): Map; /** * Clears all registered transformer functions. */ clear(): void; /** * Checks if a transformer function is registered for a specific key. * * @param {string} key - The key to check. * @returns {boolean} - True if the key exists, false otherwise. */ has(key: string): boolean; /** * Removes a transformer function by its key. * * @param {string} key - The key of the transformer function to remove. */ remove(key: string): void; /** * Executes a transformer function for a specific key with the provided input keys. * * @param {string} key - The key of the transformer function to execute. * @param {string[]} keys - The input keys to pass to the transformer function. * @throws {Error} - If no transformer function is registered for the key. * @returns {Observable} - The result of the transformer function. */ transform(key: string, keys: string[]): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }