/** * Helper utilities for desktop interaction */ export declare class ApiUtils { /** * Replace/upsert/delete objects in an array * @param srcArray A source array which will be updated by objects from the records argument * @param records Objects to replace/delete/add to the source array * @param uniqueID The primary key or unique identifier for the objects in the array * @param operation The type of operation to perform replace: Update existing objects if found upsert: Update existing objects if found, add unfound objects to beginning of array delete: Remove found objects from the array */ static updateRecords(srcArray: T[], records: T | T[], uniqueID: string | string[], operation: 'replace' | 'upsert' | 'delete'): T[]; }