interface RateLimit Passed to takeToken by each limited action, which declares its own as a constant. Properties capacity: number How many tokens a full bucket holds, and so the largest burst. refill: number Tokens regained per second.