/** * Returns a copy of the given object in a normalized form, which is: * - All keys are sorted in the order of the mapPosition object. * - All keys that are not in the mapPosition object are sorted alphabetically and appended at the end. * - All values that are objects or arrays of objects are normalized recursively. * - All empty strings, empty arrays, and empty objects, that are defined by the template, are removed together with their keys. * - All values that are not objects or arrays of objects are copied as is. * - Outside of the defined template mapPosition object, it should remain unchanged. * This returns a new object, the original object is not modified. However, some references might remain. * @param obj * @param mapPosition * @returns */ export declare function normalizeObject(obj: any, mapPosition?: any): any;