import type { AnyCultCacheDocumentDefinition, CacheBackingStore, CultCacheDocumentAccessor, CultCacheDocumentRegistry, CultCacheDocumentValue, CultCacheEnvelope } from "./types"; type BackingStoreTypeReference = string | AnyCultCacheDocumentDefinition; export declare class CultCacheBuilder { #private; withDocumentType(definition: TDefinition): this; withRegistry(registry: CultCacheDocumentRegistry | Iterable): this; withBackingStore(store: CacheBackingStore, ...types: BackingStoreTypeReference[]): this; withGenericStore(store: CacheBackingStore): this; build(): CultCache; } export declare class CultCache { #private; static readonly GLOBAL_KEY = "__global__"; static builder(): CultCacheBuilder; registerDocumentType(definition: TDefinition): TDefinition; registerRegistry(registry: CultCacheDocumentRegistry | Iterable): this; registerNameLookup(definition: TDefinition, accessor: CultCacheDocumentAccessor>): TDefinition; registerIndex(definition: TDefinition, indexName: string, accessor: CultCacheDocumentAccessor>): TDefinition; addBackingStore(store: CacheBackingStore, ...types: BackingStoreTypeReference[]): void; addGenericBackingStore(store: CacheBackingStore): void; pullAllBackingStores(): Promise; get(definition: TDefinition, key: string): CultCacheDocumentValue | undefined; getRequired(definition: TDefinition, key: string): CultCacheDocumentValue; getEnvelope(definition: TDefinition, key: string): CultCacheEnvelope | undefined; getRequiredEnvelope(definition: TDefinition, key: string): CultCacheEnvelope; getGlobal(definition: TDefinition): CultCacheDocumentValue | undefined; getRequiredGlobal(definition: TDefinition): CultCacheDocumentValue; getGlobalEnvelope(definition: TDefinition): CultCacheEnvelope | undefined; getAll(definition: TDefinition): CultCacheDocumentValue[]; getKeyByName(definition: TDefinition, name: string): string | undefined; getIdByName(definition: TDefinition, name: string): string | undefined; getByName(definition: TDefinition, name: string): CultCacheDocumentValue | undefined; getKeyByIndex(definition: TDefinition, indexName: string, value: string): string | undefined; getIdByIndex(definition: TDefinition, indexName: string, value: string): string | undefined; getByIndex(definition: TDefinition, indexName: string, value: string): CultCacheDocumentValue | undefined; put(definition: TDefinition, key: string, value: CultCacheDocumentValue): Promise>; putEnvelope(definition: TDefinition, envelope: CultCacheEnvelope): Promise>; putGlobal(definition: TDefinition, value: CultCacheDocumentValue): Promise>; update(definition: TDefinition, key: string, updater: (current: CultCacheDocumentValue | undefined) => CultCacheDocumentValue): Promise>; updateGlobal(definition: TDefinition, updater: (current: CultCacheDocumentValue | undefined) => CultCacheDocumentValue): Promise>; delete(definition: TDefinition, key: string): Promise; deleteGlobal(definition: TDefinition): Promise; snapshot(): CultCacheEnvelope[]; } export {}; //# sourceMappingURL=cult-cache.d.ts.map