import { OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core'; import { UsageService, EntitlementsService } from '../../services'; import { UsageSummary } from '../../models'; import * as i0 from "@angular/core"; /** * Displays usage with progress bar and optional limit warnings * * @example * ```html * * * ``` */ export declare class UsageMeterComponent implements OnInit, OnDestroy, OnChanges { private usageService; private entitlementsService; /** * Meter ID to track usage for */ meterId: string; /** * Customer ID */ customerId: string; /** * Entitlement code for the limit (optional) */ limitCode?: string; /** * Whether to show overage warning */ showOverageWarning: boolean; /** * Warning threshold (0-1), default 0.9 (90%) */ warningThreshold: number; currentUsage: number; limit: number | null; usageSummary: UsageSummary | null; loading: boolean; error: string | null; private destroy$; constructor(usageService: UsageService, entitlementsService: EntitlementsService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private loadUsageData; /** * Get progress percentage (0-100) */ getProgressPercentage(): number; /** * Check if usage is approaching limit */ isApproachingLimit(): boolean; /** * Check if usage has exceeded limit */ hasExceededLimit(): boolean; /** * Get progress bar color class */ getProgressColorClass(): string; /** * Get formatted usage display */ getUsageDisplay(): string; /** * Get formatted limit display */ getLimitDisplay(): string; /** * Get warning message */ getWarningMessage(): string; /** * Get period display text */ getPeriodDisplay(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }