/**
 * 配额包相关类型定义
 */
declare namespace Api.QuotaPackage {
  /**
   * 配额包列表项 DTO
   */
  interface QuotaPackageListDto {
    id: string
    name: string
    quotaType: number
    quotaValue: number
    price: number
    isActive: boolean
    sortOrder: number
    description?: string
  }

  /**
   * 配额包详情 DTO
   */
  interface QuotaPackageDto {
    id: string
    name: string
    quotaType: number
    quotaValue: number
    price: number
    isActive: boolean
    sortOrder: number
    description?: string
    createdAt: string
    updatedAt?: string
  }

  /**
   * 创建配额包命令
   */
  interface CreateQuotaPackageCommand {
    name: string
    quotaType: number
    quotaValue: number
    price: number
    isActive?: boolean
    sortOrder?: number
    description?: string
  }

  /**
   * 更新配额包命令
   */
  interface UpdateQuotaPackageCommand {
    name: string
    quotaType: number
    quotaValue: number
    price: number
    isActive?: boolean
    sortOrder?: number
    description?: string
  }

  /**
   * 购买配额包命令
   */
  interface PurchaseQuotaPackageCommand {
    quotaPackageId: string
    expiredAt?: string
    notes?: string
  }

  /**
   * 租户配额购买记录 DTO
   */
  interface TenantQuotaPurchaseDto {
    id: string
    tenantId: string
    quotaPackageId: string
    quotaPackageName: string
    quotaType: number
    quotaValue: number
    price: number
    purchasedAt: string
    expiredAt?: string
    notes?: string
  }

  /**
   * 租户配额使用情况 DTO
   */
  interface TenantQuotaUsageDto {
    tenantId: string
    quotaType: number
    limitValue: number
    usedValue: number
    remainingValue: number
    resetCycle?: string
    lastResetAt?: string
  }
}
