import { InferArgs } from "./types";
/**
 * Create a throttle which runs up to `max` async functions at once
 * @param max - maximum number of async functions to run
 * @param queueMax - maximum number of functions to queue (-1 = unlimited, default)
 */
export default function makeThrottle<T extends (...args: any[]) => any>(max: number, queueMax?: number): (fn: T) => (...args: InferArgs<T>[]) => Promise<InferArgs<T>>;
