import { OmniProcessRecord, OmniScriptElementRecord, OmniScriptRecord } from '@vlocode/omniscript'; import { VlocityDatapack } from '@vlocode/vlocity'; import { ILogger } from '@vlocode/core'; export declare class OmniStudioConverter { private logger; constructor(logger?: ILogger); /** * Converts a Vlocity datapack to the corresponding OmniStudio format. * * @param datapack - The Vlocity datapack to convert * @returns A new VlocityDatapack instance with converted data in OmniStudio format * @throws Error when no OmniStudio runtime mapping is found for the given datapack type */ convertDatapack(datapack: VlocityDatapack): VlocityDatapack; private convertDatapackRecord; private getField; private transformDatapackRecordValue; /** * Converts an OmniScript record and its elements into a process and its corresponding elements. * * @param scriptRecord - The OmniScript record to be converted. * @param elements - An array of OmniScript element records to be converted. * @returns An object containing the converted process and an array of converted elements. */ convertOmniScript(scriptRecord: OmniScriptElementRecord, elements: OmniScriptRecord[]): { process: OmniProcessRecord; elements: OmniScriptElementRecord[]; }; /** * Converts a given record to a specified type using OmniStudio runtime mappings. * * @template T - The type to which the record should be converted. * @param {string} sobjectType - The SObject type of the record. * @param {object} record - The record to be converted. * @throws {Error} - Throws an error if no OmniStudio runtime mappings are found for the given SObject type. */ convertRecord(sobjectType: string, record: object): { attributes: { type: string; }; }; private getMapping; } //# sourceMappingURL=omniStudioConverter.d.ts.map