import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";

//#region src/data-access/runtime/entitlements.d.ts
declare const listOrgEntitlements: (db: AgentsRunDatabaseClient) => (orgId: string) => Promise<Array<{
  resourceType: string;
  maxValue: number;
}>>;
declare function dalResolveEntitlement(db: AgentsRunDatabaseClient, orgId: string, resourceType: string): Promise<number | null>;
declare function dalSelectEntitlementForUpdate(tx: AgentsRunDatabaseClient, orgId: string, resourceType: string): Promise<number | null>;
declare function dalGetServiceAccountUserId(db: AgentsRunDatabaseClient, orgId: string): Promise<string | null>;
declare function dalCountMembersByRoleBucket(db: AgentsRunDatabaseClient, orgId: string, isAdminBucket: boolean, serviceAccountUserId: string | null): Promise<number>;
declare function dalSumSeatEntitlements(db: AgentsRunDatabaseClient, orgId: string): Promise<number | null>;
//#endregion
export { dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSelectEntitlementForUpdate, dalSumSeatEntitlements, listOrgEntitlements };