import { ITransformItem } from "@hmcts/opal-frontend-common/services/transformation-service/interfaces"; import * as i0 from "@angular/core"; export declare class TransformationService { private readonly dateService; /** * Applies a transformation to the given value based on the specified transformation configuration. * * @param value - The value to be transformed. * @param transformItem - The configuration for the transformation, including the type of transformation and any necessary format details. * @returns The transformed value, or the original value if no transformation is applied. */ private applyTransformation; /** * Transforms the values of an object based on a given transformation configuration. * * @param obj - The object whose values need to be transformed. It should be a non-null object. * @param toTransform - An array of transformation configurations, where each configuration specifies * the key to transform and the transformation details. * @returns The transformed object with values modified according to the transformation configuration. * * @remarks * - If the input `obj` is not an object or is null, it returns the input as is. * - The function recursively processes nested objects. */ transformObjectValues(obj: { [key: string]: any; }, toTransform: ITransformItem[]): any; /** * replaces the keys in the object provided * by replacing the current prefix with a new prefix. * Useful when mapping object keys to a different format or structure. * @param data - The data object containing key-value pairs. * @param currentPrefix - The prefix to be replaced in the keys. * @param replacementPrefix - The prefix to replace the current prefix with. * @returns A new object with the keys replaced. * @template T - The type of the form data object. */ replaceKeys(data: T, currentPrefix: string, replacementPrefix: string): Record; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }