import { AnyEntity } from "../entity/any-entity.type"; import { EntityType } from "../entity/entity-type.interface"; import { PrimaryKey } from "../field/field-values/primary-key.type"; import { BerryOrm } from "./berry-orm.class"; export declare class IdentityMap { private orm; private map; constructor(orm: BerryOrm); get(type: EntityType, primaryKey: PrimaryKey): Entity; set(type: EntityType, primaryKey: PrimaryKey, entity: Entity): this; has(type: EntityType, primaryKey: PrimaryKey): boolean; /** * Clear the identities. * * In most cases, you are NOT likely to invoke this method manually because * this won't deal with the existing entities. Maybe {@link BerryOrm.reset} * is what you want. */ clear(): void; [Symbol.iterator](): Iterator<[string, AnyEntity]>; private identify; private checkType; } //# sourceMappingURL=identity-map.class.d.ts.map