import { NormalizedObject, NormalizedResult, NormalizeObjectWithOp } from '../types'; /** * Verify an uid is a temporary id * @param id the UID */ export declare const isTempId: (uid: string) => boolean | ""; /** * Copy the raw object to a new array * * **Important Note**: we just take care for the new object id/temporart id, * any real id should be considered as a normal value. * * @param objects The normalized objects to copy * * @returns A new array of raw objects */ export declare const copyRawObjects: (objects: NormalizeObjectWithOp[]) => NormalizeObjectWithOp[]; /** * Update the normalized object with the actual UID * * @param orgObjects The original normalized objects * @param tempKeyMap The actual map * * @returns The original normalized objects with the actual UID */ export declare const updateObjects: (orgObjects: NormalizeObjectWithOp[], tempKeyMap: Map) => NormalizeObjectWithOp[]; /** * Compare the old object with the new one to detect the changed nested objects. * * @param newNormailize New normalized object * @param oldNormalize Old normalized object * * @returns List of changed objects */ export declare function diffNormalizedObjects(newNormailize: NormalizedResult, oldNormalize: NormalizedResult): NormalizeObjectWithOp[]; /** * Convert the multiple level JSON objects to a flat objects which have only one level. * The new flat objects will be distinguished by a composite key: [typename:UID] * * If the object does not contain the __typename or UID will be ignored. * The reference objects will be ignored as well. * * @param jsonObjects Array of JSON objects * @param refFields The reference objects * @param isInsertDirectionFlag The instance fetch can contain the dirrection flags to control the mutation queries, it is * used to control only the new/changed objects * @returns The normalized objects in an array */ export declare const nomalizeJsonObject: (jsonObjects: unknown, idMappings: Map, refFields?: string[]) => NormalizedResult; export declare const omitPrivateFields: (obj: NormalizedObject) => import("lodash").Omit; //# sourceMappingURL=normalizationUtils.d.ts.map