import { type TenantContext } from "./tenantContext"; type TransactionHandle = { unsafe(query: string, params?: readonly unknown[]): Promise; }; declare function applyTenantContextToTransaction(transaction: TransactionHandle, tenantId: number): Promise; declare function runWithTenantDatabase(tenant: TenantContext, callback: () => T | Promise): Promise; declare function isInsideTenantDatabaseScope(tenantId?: number | undefined): boolean; export { applyTenantContextToTransaction, isInsideTenantDatabaseScope, runWithTenantDatabase };