export { C as CostTracker, P as PricingCalculator } from '../CostTracker-_TwTsEdz.js'; import { EventEmitter } from 'eventemitter3'; import { L as Logger } from '../logger-DUq4P1BF.js'; import '../pricing-BUJAtUlg.js'; import '../ModelCatalog-BcfW6bZr.js'; /** * Budget Alerting System * Monitors spending and triggers alerts */ interface AlertThreshold { percentage: number; action: 'warn' | 'notify' | 'block'; message?: string; } interface AlertConfig { daily?: AlertThreshold[]; monthly?: AlertThreshold[]; total?: AlertThreshold[]; email?: string; webhook?: string; } interface AlertEvent { type: 'daily' | 'monthly' | 'total'; threshold: number; current: number; limit: number; percentage: number; action: 'warn' | 'notify' | 'block'; timestamp: number; } declare class BudgetAlerting extends EventEmitter { private config; private logger; private triggeredAlerts; constructor(config: AlertConfig, logger: Logger); /** * Check if budget threshold is exceeded */ check(type: 'daily' | 'monthly' | 'total', current: number, limit: number): AlertEvent | null; /** * Emit alert events */ private emitAlert; /** * Send email alert */ private sendEmailAlert; /** * Send webhook alert */ private sendWebhookAlert; /** * Reset triggered alerts */ reset(): void; /** * Update alert configuration */ updateConfig(config: Partial): void; /** * Get alert configuration */ getConfig(): AlertConfig; /** * Check if alert has been triggered */ hasTriggered(type: string, threshold: number): boolean; } export { type AlertConfig, type AlertEvent, type AlertThreshold, BudgetAlerting };