import { RedisXError, ErrorCode } from '@nestjs-redisx/core'; import { IRateLimitResult } from '../types'; /** * Base error class for rate limit errors. */ export declare class RateLimitError extends RedisXError { readonly result?: IRateLimitResult | undefined; constructor(message: string, code: ErrorCode, result?: IRateLimitResult | undefined, cause?: Error); } /** * Error thrown when rate limit is exceeded. */ export declare class RateLimitExceededError extends RateLimitError { constructor(message: string, result: IRateLimitResult); /** * Seconds until retry is allowed. */ get retryAfter(): number; } /** * Error thrown when Lua script execution fails. */ export declare class RateLimitScriptError extends RateLimitError { constructor(message: string, cause?: Error); } /** * Error thrown when plugin or per-call configuration is invalid. * Always fail-fast: never subject to the errorPolicy. */ export declare class InvalidRateLimitConfigError extends RateLimitError { constructor(message: string); } //# sourceMappingURL=index.d.ts.map