import { IntlayerConfig } from "@intlayer/types/config"; import { Dictionary, DictionaryKey } from "@intlayer/types/dictionary"; //#region src/buildIntlayerDictionary/writeUnmergedDictionary.d.ts export declare const groupDictionariesByKey: (dictionaries: Dictionary[]) => Record; export type UnmergedDictionaryResult = { dictionaryPath: string; dictionaries: Dictionary[]; }; export type UnmergedDictionaryOutput = Record; /** * Write the unmerged dictionaries to the unmergedDictionariesDir * @param dictionaries - The dictionaries to write * @param configuration - The configuration * @returns The grouped dictionaries * * @example * ```ts * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries); * console.log(unmergedDictionaries); * * // .intlayer/unmerged_dictionaries/home.json * // { * // [ * // { key: 'home', content: { ... } }, * // { key: 'home', content: { ... } }, * // ], * // } * ``` */ export declare const writeUnmergedDictionaries: (dictionaries: Dictionary[], configuration: IntlayerConfig, env: 'prod' | 'dev') => Promise; //#endregion //# sourceMappingURL=writeUnmergedDictionary.d.ts.map