import type { Tenant } from "../../../types/tenancy.js"; export interface ITenantContext { setTenant(tenant: Tenant): void; getTenant(): Tenant; withRootTenant(cb: () => T): Promise; withEachTenant(tenants: Tenant[], cb: (tenant: Tenant) => Promise): Promise; withTenant(tenant: Tenant, cb: (tenant: Tenant) => Promise): Promise; } /** Provides access to the current tenant and tenant-scoped execution. */ export declare const TenantContext: import("@webiny/di").Abstraction; export declare namespace TenantContext { type Interface = ITenantContext; }