import type { DB } from '../../data/db/index.js'; export interface TenantCacheConfig { readonly name: string; readonly load: (db: DB, tenantId: string) => Promise; readonly ttlMs?: number; readonly database: string; } export interface TenantCache { get(tenantId?: string): Promise; invalidate(tenantId?: string): void; stats(): TenantCacheStats; preload(tenantId: string): Promise; } export interface TenantCacheStats { readonly name: string; readonly tenantCount: number; readonly totalHits: number; readonly totalMisses: number; } export declare function createTenantCache(config: TenantCacheConfig): TenantCache; //# sourceMappingURL=tenant.d.ts.map