import { DictionariesStatus } from "./loadDictionaries/loadDictionaries.js"; import "./loadDictionaries/index.js"; import { DictionaryAPI } from "@intlayer/backend"; //#region src/fetchDistantDictionaries.d.ts type FetchDistantDictionariesOptions = { dictionaryKeys: string[]; newDictionariesPath?: string; logPrefix?: string; /** * Number of dictionaries fetched by a single request. * @default 3 */ dictionariesPerRequest?: number; /** * Number of requests kept in flight at the same time. * @default 5 */ parallelRequests?: number; /** * Number of retries performed when a batch request fails. * @default 2 */ maxRetry?: number; /** * Delay between two attempts of a failing batch request, in milliseconds. * @default 250 */ retryDelay?: number; }; /** * Fetch distant dictionaries and update the logger with their statuses. * * Keys are grouped into batches fetched by a single request each, and those * requests are kept in flight together — by default 5 concurrent requests of 3 * dictionaries, so 15 dictionaries travel at any given time. A slot is refilled * as soon as its request settles, so no batch waits for the whole wave. * Failing requests are retried before their keys are reported as errors. */ export declare const fetchDistantDictionaries: (options: FetchDistantDictionariesOptions, onStatusUpdate?: (status: DictionariesStatus[]) => void) => Promise; //#endregion //# sourceMappingURL=fetchDistantDictionaries.d.ts.map