import type { QuotaService, AccountQuota } from './QuotaService'; import type { EntitlementProvider } from './EntitlementProvider'; interface DrizzleQuotaServiceOptions { identityDbUrl: string; entitlementProvider?: EntitlementProvider; } /** * 统一 QuotaService 实现 * * 查询优先级:本地自定义配额 > 远端 entitlement > 环境变量默认值 > 不限制 (null) */ export declare class DrizzleQuotaService implements QuotaService { private readonly logger; private readonly accountRepo; private readonly usageRepo; private readonly entitlementProvider; constructor(options: DrizzleQuotaServiceOptions); getAccountQuota(accountId: string): Promise; setAccountQuota(accountId: string, quota: Partial): Promise; getPodQuota(podId: string): Promise; setPodQuota(podId: string, quota: Partial): Promise; clearAccountQuota(accountId: string): Promise; clearPodQuota(podId: string): Promise; /** * 解析配额值:本地自定义配额 > 远端 entitlement > 环境变量默认值 > null (不限制) */ private resolve; private needsRemoteEntitlement; } export {};