/** * Author: Charuka Rathnayaka * Email: CharukaR@99x.io **/ import { GeneralDataInjector } from './GeneralDataInjector.js'; import { LevenshteinDataInjector } from './LevenshteinDataInjector.js'; export declare class DataInjector { generalDataInjector: GeneralDataInjector; levenshteinDataInjector: LevenshteinDataInjector; constructor(); /** * injectData * This function injects data into the schema. * @param data The data to be injected. * @param schema The schema to inject data into. * @returns { [key: string]: any } The schema with the injected data. */ injectData(data: { [key: string]: any; }, schema: { [key: string]: any; }): { [key: string]: any; }; /** * replaceDataValues * This function replaces the data values with the most similar values in the schema. * It identifes the keys with given values (given as an array in the input schema) and replaces the data values with the most similar values in the schema. * @param data The data to be replaced. * @param schema The schema to replace the data values. * @returns { [key: string]: any } The schema with the replaced data values. */ replaceDataValues(data: { [key: string]: any; }, schema: { [key: string]: any; }): { [key: string]: any; }; }