import { BreezeConfig } from '../config/config.js'; import type { ModelLibraryAdapter } from '../config/interface-registry.js'; import type { Entity, StructuralObject } from '../entity/entity-aspect.js'; /** * Change tracking for plain JavaScript objects. * * Each mapped property becomes an accessor **on the prototype** - defined once per type, not per * instance - and the values live in a `_backingStore` object on the instance. A get reads the * store; a set hands the property, the new value and an accessor for the old one to the entity's * `_$interceptor`, which is where change tracking actually happens. * * That split is why this file is cheap and the interceptor is not: of the time spent setting a * tracked property, about 96% is change tracking (validation alone is around 63%) and about 2% is * the plumbing here. Optimise the interceptor, or turn off `validateOnPropertyChange`; there is * very little to win in this file. */ export declare class ModelLibraryBackingStoreAdapter implements ModelLibraryAdapter { name: string; constructor(); static register(config?: BreezeConfig): ModelLibraryBackingStoreAdapter; initialize(): void; /** * The value of a property as it is stored, without creating anything. A collection navigation * is created on first read (see makeCollectionNavPropDescription), so code that only wants to * look at existing related entities asks with this instead of `getProperty` - otherwise * attaching or deleting an entity would materialise every collection it has. */ peekProperty(entity: StructuralObject, propertyName: string): any; getTrackablePropertyNames(entity: Entity): string[]; initializeEntityPrototype(proto: any): void; startTracking(entity: StructuralObject, proto: any): void; }