import { D as DbAdapter } from '../types-YdF1AOxp.js'; import './metrics.js'; import './flag-types.js'; interface TenantAdapterConfig { /** Tenant identifier used as namespace prefix. */ tenantId: string; /** * Namespace separator between tenant ID and flag key. * @default ':' */ separator?: string; } /** * Wrap a DbAdapter with tenant-scoped key namespacing. * * All flag keys, segment keys, and other identifiers are prefixed with * `{tenantId}{separator}` transparently. This enables safe multi-tenant * isolation over a shared database instance. * * ```ts * const tenantDb = createTenantAdapter(sharedDb, { tenantId: 'acme' }) * // Flag key "checkout-v2" becomes "acme:checkout-v2" in storage * ``` */ declare function createTenantAdapter(inner: DbAdapter, config: TenantAdapterConfig): DbAdapter; export { type TenantAdapterConfig, createTenantAdapter };