/** * @omnifolio/rate-governor — Presets & Subscription Tiers * * Ready-to-use rate limit configurations for common use cases, * plus helpers to scale limits based on subscription plans. * * Built by OmniFolio — https://omnifolio.app */ import type { RateLimitConfig } from './types'; /** * Battle-tested rate limit presets. * * Each preset is a `RateLimitConfig` you can pass directly to * `checkRateLimit()` or `checkRateLimitAsync()`. */ export declare const Presets: Record; /** * Get a multiplier for a subscription plan name. * * You can extend this mapping to match your own plan names. * The multiplier is applied to the `limit` field of any preset. */ export declare function getSubscriptionMultiplier(plan: string): number; /** * Scale a rate limit config by the subscription multiplier. * * ```ts * const config = getSubscriptionRateLimit(Presets.API_DATA, 'pro'); * // config.limit === 500 (100 × 5) * ``` */ export declare function getSubscriptionRateLimit(baseConfig: RateLimitConfig, plan: string): RateLimitConfig; //# sourceMappingURL=presets.d.ts.map