/** * Class that handles ratelimits for long running actions that may error. */ export declare class RateLimitToken { #private; /** * @param expires When this token expires. * @param revert The reject handler that restores the remaining to the RateLimit this is for. */ constructor(expires: number, revert: () => void); /** * Marks this token as used (for use when the underlying task completes successfully). */ commit(): void; /** * Marks this token as used and returns the token to the ratelimit (for use when the underlying task fails). */ revert(): void; }