import { Component, ContentType, Field, VersionStatus } from 'contensis-core-api'; import { Entry, Node, Tag, TagGroup } from 'contensis-management-api'; import { FormContentType } from '../models/FormContentTypeManagement'; import ContensisRepository from '../repositories/ContensisRepository'; import { NulledEntry, WebhookSubscription } from '../models'; export declare const compareFields: (target: NulledEntry | Node | ContentType | Component | FormContentType | Tag | TagGroup | WebhookSubscription, source: Entry | NulledEntry | Node | ContentType | Component | FormContentType | Tag | TagGroup | WebhookSubscription, sourceRepo: ContensisRepository, targetRepo: ContensisRepository, dontCompareFields?: string[]) => { id: any; changed: boolean; diff: string | undefined; }; export declare const getCmsFilePath: (e: Entry) => string | undefined; /** * Boilerplate to resolve a value in an entry by field id * @param entry The entry containing the field value to return * @param fieldId The id of the entry field to get * @returns The resolved field value */ export declare const getFieldValue: (entry: Entry, fieldId: string) => any; export declare const getSys: (e: Entry) => any; export declare const getSysId: (e: Entry) => any; export declare const parseZenqlVersionStatus: (zenQL?: string) => VersionStatus | undefined; export declare const loadEntryIds: (arr: ContensisRepository["entryIds"], entries: Entry[]) => [string, string, string, string, string][]; export declare const mergeEntryIds: (idArray: ContensisRepository["entryIds"], loadedEntryIds: ContensisRepository["entryIds"], entryArray: Entry[], entries: Entry[]) => [string, string, string, string, string][]; /** * transformContentTypeId has limited usability and should * be used to move entries if they have been created in the wrong content type, it cannot * be used more than once to duplicate an entry in a project due to guid clashes and * cannot be used for sync operations. * @param entry the entry we are building * @param transformContentTypes object containing contentTypeId keys containing the values to transform * @returns the entry we are building with contentTypeId transformed if specified */ export declare const transformContentTypeId: (entry: Entry, transformContentTypes?: { [k: string]: string; }) => Entry; /** * Boilerplate to resolve a field by id in a target entry and add the value to that field * mutating the provided entry argument * @param entry The entry containing the field to update * @param fieldId The id of the entry field to update * @param value The value to update the entry field with */ export declare const updateFieldValue: (entry: Entry, fieldId: string, value: any, parentFields?: Field[]) => void;