/** * Plan Limits Helper * * Computes quotas, limits, and restrictions based on plan tiers. */ export interface PlanLimits { includedTokensPerMonth: number; payAsYouGoEnabled: boolean; pricePerNovaTokenUsd: number; enterpriseTokenCapPerMonth?: number; enterpriseCapBehavior?: "block" | "allow_overage"; } /** * Get plan limits for a user/account * Note: Account and PlanTier models don't exist in simplified schema * Returns default free tier limits for now */ export declare function getPlanLimits(userId: string, // User.id is String in schema accountId?: string): Promise; /** * Get current month usage for user/account * Note: TokenUsage model uses 'timestamp' instead of 'createdAt', and stores data in metadata */ export declare function getCurrentMonthUsage(userId: string, // User.id is String in schema accountId?: string): Promise; /** * Get today's usage for user/account * Note: TokenUsage model uses 'timestamp' instead of 'createdAt', and stores data in metadata */ export declare function getTodayUsage(userId: string, // User.id is String in schema accountId?: string): Promise; /** * Check if user can make an AI request */ export declare function canMakeAIRequest(userId: string, // User.id is String in schema accountId?: string, estimatedNovaTokens?: number): Promise<{ allowed: boolean; reason?: string; limits: PlanLimits; currentUsage: number; remaining: number; }>; //# sourceMappingURL=planLimits.d.ts.map