import { XEntity, XField } from "./XEntityMetadata"; import { XCustomFilter, XCustomFilterItem } from "./FindParam"; import { DataTableSortMeta } from "./PrimeFilterSortMeta"; export declare class XUtilsCommon { static newLine: string; static getValueByPath(object: any, path: string): any; static getValueOrValueListByPath(object: any, path: string): any | any[]; static setValueByPath(object: any, path: string, value: any): void; static getFieldListForPath(path: string): string[]; static getFieldAndRestPath(path: string): [string, string | null]; static getPathToAssoc(path: string): string; static getPathToAssocAndField(path: string): [string | null, string]; static isSingleField(path: string): boolean; static getPrefixAndField(path: string): [string | null, string]; static createDisplayValue(object: any, xEntity: XEntity | undefined, fields: string[]): string; static createDisplayValueForField(object: any, xEntity: XEntity | undefined, field: string): string; static displayValueAsUI(prefix: string | null, value: any, xField: XField | undefined): string; static objectAsJSON(value: any): string; static arrayCreateMap(array: T[], idField: string): Map; static arrayMoveElement(array: any[], position: number, offset: number): void; static arraySort(array: any[], fieldOrValueFunction: string | ((item: any) => any)): any[]; static arrayIncludes(array: T[], item: T, idField: string): boolean; static arrayIntersect(array1: T[], array2: T[], idField: string): T[]; static numberArraySymmetricDiff(idListA: number[], idListB: number[]): number[]; static numberArrayUnion(idListA: number[], idListB: number[]): number[]; static createCustomFilter(filter: string | undefined | null): XCustomFilterItem | undefined; static createCustomFilterItems(customFilter: XCustomFilter | undefined): XCustomFilterItem[] | undefined; static createMultiSortMeta(sortField: string | DataTableSortMeta[] | undefined): DataTableSortMeta[] | undefined; static filterAnd(...filters: (XCustomFilter | undefined)[]): XCustomFilterItem[] | undefined; static filterIdIn(idField: string, idList: number[]): XCustomFilter; static createPathFieldExp(pathFieldOrPathFieldExp: string): string; static isPathField(pathFieldOrPathFieldExp: string): boolean; static getDayName(date: Date | null | undefined): string | undefined; static dateAddDays(date: Date | null, days: number): Date | null; static dateAddMonths(date: Date | null, months: number): Date | null; static dateEquals(date1: Date | null, date2: Date | null): boolean; static dateIntersect(date1From: Date, date1To: Date, date2From: Date, date2To: Date): boolean; static dateCompare(date1: Date, date2: Date): number; static dateDiffInYears(dateOld: Date | null, dateNew: Date | null): number | null; static monthDiff(monthOld: Date | null, monthNew: Date | null): number | null; static findFirstMatch(pattern: RegExp, value: string): string | null; static sqlMaxDateIfNull(sqlExp: string): string; static today(): Date; static currentMonth(): Date; static dateAsMonth(date: Date | null): Date | null; static isInt(stringValue: string): boolean; }