This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@grammyjs/transformer-throttler/dist/mod.d.ts
T

19 lines
723 B
TypeScript

import { Bottleneck } from './deps.node.js';
import type { MiddlewareFn, Transformer } from './deps.node.js';
declare type APIThrottlerOptions = {
global?: Bottleneck.ConstructorOptions;
group?: Bottleneck.ConstructorOptions;
out?: Bottleneck.ConstructorOptions;
};
declare const bypassThrottler: MiddlewareFn;
declare const apiThrottler: (opts?: APIThrottlerOptions) => Transformer;
declare const BottleneckStrategy: {
readonly LEAK: Bottleneck.Strategy;
readonly OVERFLOW_PRIORITY: Bottleneck.Strategy;
readonly OVERFLOW: Bottleneck.Strategy;
readonly BLOCK: Bottleneck.Strategy;
};
export { BottleneckStrategy };
export type { APIThrottlerOptions };
export { apiThrottler, bypassThrottler };