export type Task = () => Promise; export type MinimizedResult = import("./index.js").MinimizedResult; export type Input = import("./index.js").Input; export type HtmlMinifierTerserOptions = import("html-minifier-terser").Options; /** * @template T * @typedef {() => Promise} Task */ /** * Run tasks with limited concurency. * @template T * @param {number} limit - Limit of tasks that run at once. * @param {Task[]} tasks - List of tasks to run. * @returns {Promise} A promise that fulfills to an array of the results */ export function throttleAll(limit: number, tasks: Task[]): Promise; /** * @param {Input} input * @param {HtmlMinifierTerserOptions | undefined} [minimizerOptions] * @returns {Promise} */ export function htmlMinifierTerser( input: Input, minimizerOptions?: HtmlMinifierTerserOptions | undefined ): Promise;