import type { NodeProps } from '../contextree/types'; /** * @description * The FieldUtilsclass contains utility APIs that handle the field related operations */ declare class FieldUtils { /** * This function updates the array notation path of the target property into a Pega-specific page reference format. * Example referenceList = ".Questionsets[0].Questions" return = ".Questionsets(1).Questions" * @param referenceList - The array notation path of the target property to be updated. * @returns The updated reference list as a string. * @public * @example formatPageReference API will return updated referenceList in the format expected by dxapi * PCore.getFieldUtils().formatPageReference('.Questionsets[0].Questions') * returns -- '.Questionsets(1).Questions'; */ static formatPageReference(referenceList: string): string; /** * This function updates the array notation path of the target property into a constellation specific page reference format. * Example referenceList = ".Questionsets(1).Questions" return = ".Questionsets[0].Questions" * @param referenceList - The array notation path of the target property to be updated. * @returns The updated reference list as a string. * @public * @example formatPageReference API will return updated referenceList in the format expected by dxapi * PCore.getFieldUtils().formatPageReference('.Questionsets(1).Questions') * returns -- '.Questionsets[0].Questions'; */ static formatePageReferenceToArrayIndex(referenceList: string): string; /** * This function returns the fieldLabel from c11nEnv configProps. * @param fieldC11n Constellation env object. * @returns The label of the field as string. * @private * @example getFieldLabel API will return the fieldLabel from c11nEnv configProps * PCore.getFieldUtils().getFieldLabel(fieldC11nEnv) * returns -- 'label'; */ static getFieldLabel(contextTreeNodeProps: NodeProps): string | undefined; } export default FieldUtils;