import IntegrationLogger from '../integration/types/IntegrationLogger'; interface ShaHashMap { [key: string]: string; } interface ExistingItem { _rawDataHashes?: string; } interface NewItem { _rawData: RawData[]; } interface RawData { name: string; rawData: object; } /** * @description calculates the base64 sha256 hash of the * stringified object * @param object object to hash stringified version of */ export declare function shaHash(object: object): string; /** * @description builds a serializable hash map for raw data * @param rawData raw data to build hashes for */ export declare function generateShaHashes(rawData?: RawData[]): ShaHashMap; /** * @description adds _rawDataHashes to the newItem * and filters the newItem's _rawData based on comparing * the existingItem's _rawDataHashes and the newItem's * _rawDataHashes * @param existingItem the item from the graph * @param newItem the item from the integration */ export default function diffRawData(existingItem: ExistingItem, newItem: NewItem, logger: IntegrationLogger): { _rawData: RawData[]; _rawDataHashes: string; }; export {};