/** * Author: Charuka Rathnayaka * Email: CharukaR@99x.io **/ export declare class Utility { /** * extractJsonFromLlmResponse * This function extracts the JSON object from the given LLM response. * @param input - The LLM response string * @returns The JSON object extracted from the LLM response * @throws Error if no valid JSON object found in the string **/ static extractJsonFromLlmResponse(input: string): { [key: string]: any; }; /** * flattenJsonObject * This function flattens a JSON object. * @param obj - The JSON object to be flattened * @param parentKey - The parent key of the object * @param result - The result object * @returns The flattened JSON object **/ static flattenJsonObject(obj: { [key: string]: any; }, parentKey?: string, result?: { [key: string]: any; }): { [key: string]: any; }; static hasNestedObject(inputJson: Record): boolean; static convertNestedJsonToArrayOfSimpleJson(inputJson: Record): Record[]; static rebuildNestedJson(processedArray: Record[]): Record; static getClosestMatch(inputName: string, availableNames: string[]): string; static getLevenshteinDistance(a: string, b: string): number; }