import { PostgresTransaction, TransactionalDatabase } from "@platform-modules/db";
//#region src/isolation-rls.d.ts
type RunInTenantOptions = {
  gucName?: string;
  role?: string;
};
declare function runInTenant<S extends Record<string, unknown>, T>(db: TransactionalDatabase<S>, tenantId: string, fn: (scoped: PostgresTransaction<S>) => Promise<T>, opts?: RunInTenantOptions): Promise<T>;
type TenantPolicyDDLOptions = {
  column?: string;
  gucName?: string;
  force?: boolean;
};
declare function tenantPolicyDDL(tableName: string, opts?: TenantPolicyDDLOptions): string[];
//#endregion
export { RunInTenantOptions, TenantPolicyDDLOptions, runInTenant, tenantPolicyDDL };