import { LocalizedDictionaryOutput } from "./writeDynamicDictionary.js"; import { IntlayerConfig } from "@intlayer/types/config"; //#region src/buildIntlayerDictionary/writeFetchDictionary.d.ts /** * Generates the live (fetch-mode) entry point of a dictionary. * * When the dictionary references others through `nest()`, those are fetched * live alongside it and attached as `nestedDictionaries`, so a remote edit to a * nested dictionary propagates through the reference instead of resolving * against the build-time snapshot. * * @param key - The dictionary key. * @param locales - Locales to emit a loader for. * @param relativePrefix - Relative path to the dynamic dictionaries directory. * @param format - Output module format. * @param nestedKeys - Keys referenced through `nest()`, transitively. */ export declare const generateDictionaryEntryPoint: (key: string, locales: string[], relativePrefix: string, format?: 'cjs' | 'esm', nestedKeys?: string[]) => string; /** * Write the localized dictionaries to the dictionariesDir * @param mergedDictionaries - The merged dictionaries * @param configuration - The configuration * @returns The final dictionaries * * @example * ```ts * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries); * const finalDictionaries = await writeFinalDictionaries(unmergedDictionaries); * console.log(finalDictionaries); * * // .intlayer/fetch_dictionary/home.mjs * // .intlayer/fetch_dictionary/home.cjs * ``` */ export declare const writeFetchDictionary: (dynamicDictionaries: LocalizedDictionaryOutput, configuration: IntlayerConfig, formats?: ('cjs' | 'esm')[], nestedDictionaryGraph?: Map>) => Promise; //#endregion //# sourceMappingURL=writeFetchDictionary.d.ts.map