import { Db } from './Db'; import { DbPatch, DbTablesSet, DbEntitySchema, DbPkFieldType } from './types'; import { IClientIdsMap } from './tempIds'; export declare function unionPatches>(patches: DbPatch[]): DbPatch; export declare function mergeEntityPatches>(tables: TTables, patch: DbPatch): DbPatch; export declare function flattenResponse>(response: any, tables: TTables): DbPatch; export declare function isPatchBlank>(patch: DbPatch): boolean; /** * Given several patches, creates a new single patch with all fields from all entities in all patches. */ export declare function makeCumulativePatch>(updatedDb: Db, patches: DbPatch[], clientIdsMap: IClientIdsMap): DbPatch; export declare function isClientOnly>(entity: T, schema: DbEntitySchema): boolean; export declare function getId>(entity: Partial, schema: DbEntitySchema): TId; export declare function isNew>(entity: Partial, schema: DbEntitySchema, clientIdsMap: IClientIdsMap): boolean; export declare function hasServerFields>(entity: Partial, schema: DbEntitySchema, clientIdsMap: IClientIdsMap, tables: TTables): boolean; export declare function getParentEntities>(patch: DbPatch, tables: TTables): DbPatch; export declare function getEntityParentDependencies>(entity: Partial, entityName: keyof TTables, tables: TTables): DbPatch; //# sourceMappingURL=patchHelpers.d.ts.map