import { ComponentPayload } from '../classes/componentpayload'; import { ListOfIds } from '../classes/listofids'; export declare class IdReplacementMap { componentIds: Record; itemIds: Record; getReplacedComponentId(id: string): string; getReplacedItemId(id: string): string; static fromListOfIdsWithTargetCatalog(listOfIds: ListOfIds, newCatalog: string, oldCatalog?: string): IdReplacementMap; } /** * Replaces component and item IDs in a ComponentPayload with new IDs from the provided IdReplacementMap. * This is useful for creating copies of components with new IDs while maintaining the structure of the component * @param payload origin payload to copy and modify * @param idMap IdReplacementMap containing the new IDs for components and items * @param projectFileService If provided, the new ComponentPayload will be stored in the ProjectFileService cache and file system. * @returns */ export declare function copyPayloadWithReplacedIds(payload: ComponentPayload, idMap: IdReplacementMap): ComponentPayload; export declare function copyConfigurationWithReplacedIds(configuration: any, idsMap: IdReplacementMap): any;