import { UserInfo } from "@memberjunction/core"; import { MJEntityDocumentEntity, MJEntityDocumentTypeEntity } from "@memberjunction/core-entities"; import { BaseSingleton } from "@memberjunction/global"; /** * Caching class for Entity Documents and Entity Document Types. * * Delegates Entity Document storage to KnowledgeHubMetadataEngine (which uses * BaseEngine auto-refresh on entity events), and only independently caches * Entity Document Types (which KH engine does not manage). */ export declare class EntityDocumentCache extends BaseSingleton { private _loaded; private _typeCache; private _contextUser; constructor(); static get Instance(): EntityDocumentCache; get IsLoaded(): boolean; GetDocument(EntityDocumentID: string): MJEntityDocumentEntity | null; GetFirstActiveDocumentForEntityByID(EntityID: string): MJEntityDocumentEntity | null; GetFirstActiveDocumentForEntityByName(EntityName: string): MJEntityDocumentEntity | null; GetDocumentByName(EntityDocumentName: string): MJEntityDocumentEntity | null; GetDocumentType(EntityDocumentTypeID: string): MJEntityDocumentTypeEntity | null; GetDocumentTypeByName(EntityDocumentTypeName: string): MJEntityDocumentTypeEntity | null; SetCurrentUser(user: UserInfo): void; /** * Refreshes the cache. Entity Documents are loaded via KnowledgeHubMetadataEngine * (auto-refreshing BaseEngine). Entity Document Types are loaded independently. */ Refresh(forceRefresh: boolean, ContextUser?: UserInfo): Promise; } //# sourceMappingURL=EntityDocumentCache.d.ts.map