/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// import type { Schema } from 'mongoose'; /** Resets the cached strict-mode flag. Exposed for test teardown only. */ export declare function _resetStrictCache(): void; /** * Mongoose schema plugin that enforces tenant-level data isolation. * * - `tenantId` present in async context -> injected into every query filter. * - `tenantId` is `SYSTEM_TENANT_ID` -> skips injection (explicit cross-tenant op). * - `tenantId` absent + `TENANT_ISOLATION_STRICT=true` -> throws (fail-closed). * - `tenantId` absent + strict mode off -> passes through (transitional/pre-tenancy). * - Update and replace operations that modify `tenantId` are blocked unless running as system. */ export declare function applyTenantIsolation(schema: Schema): void;