import { TenantContext as Abstraction } from "./abstractions.js"; import type { Tenant } from "../../../types/tenancy.js"; import { GetRootTenantUseCase } from "../../../features/tenancy/GetRootTenant/index.js"; declare class TenantContextImpl implements Abstraction.Interface { private getRootTenant; private currentTenant; constructor(getRootTenant: GetRootTenantUseCase.Interface); getTenant(): Tenant; setTenant(tenant: Tenant): void; withRootTenant(cb: () => T): Promise; withEachTenant(tenants: Tenant[], cb: (tenant: Tenant) => Promise): Promise; withTenant(tenant: Tenant, cb: (tenant: Tenant) => Promise): Promise; } export declare const TenantContext: import("@webiny/di").Implementation; export {};