import WeakDependencyMap, { GetDependency } from './WeakDependencyMap.js'; import type { BaseDelegate } from '../delegate/BaseDelegate.js'; import type { EntityInterface, EntityPath } from '../interface.js'; export interface EntityCache extends Map< string, Map< string, WeakMap> > > {} export type EndpointsCache = WeakDependencyMap; export type DenormGetEntity = GetDependency; export interface IMemoPolicy { QueryDelegate: new (v: { entities: any; indexes: any }) => BaseDelegate; getEntities(entities: any): DenormGetEntity; }