UNPKG

@hivetechs/hive-ai

Version:

Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API

48 lines 1.38 kB
/** * Usage Tracking and Limit Management * Monitors conversation usage and prompts users when approaching limits */ export interface UsageNotification { type: 'info' | 'warning' | 'critical' | 'blocked'; title: string; message: string; action?: { label: string; url: string; }; } export declare class UsageTracker { private static instance; static getInstance(): UsageTracker; /** * Check usage before allowing a conversation * Returns notification if user should be warned about limits */ checkUsageBeforeConversation(): Promise<{ allowed: boolean; notification?: UsageNotification; }>; /** * Record successful conversation usage */ recordConversationUsage(): Promise<void>; /** * Generate appropriate usage warning based on current usage */ private generateUsageWarning; private generateLimitReachedMessage; private generateCriticalWarningMessage; private generateHighUsageMessage; private generateModerateUsageMessage; private getUpgradeUrl; private getNextTier; /** * Get formatted usage display for user interface */ getUsageDisplay(): Promise<string>; /** * Generate a visual progress bar for usage percentages */ private generateProgressBar; } //# sourceMappingURL=usage-tracker.d.ts.map