import { IntlayerConfig } from "@intlayer/types/config";
import { Dictionary, DictionaryKey } from "@intlayer/types/dictionary";

//#region src/buildIntlayerDictionary/writeUnmergedDictionary.d.ts
declare const groupDictionariesByKey: (dictionaries: Dictionary[]) => Record<string, Dictionary[]>;
type UnmergedDictionaryResult = {
  dictionaryPath: string;
  dictionaries: Dictionary[];
};
type UnmergedDictionaryOutput = Record<DictionaryKey, UnmergedDictionaryResult>;
/**
 * 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: { ... } },
 * //   ],
 * // }
 * ```
 */
declare const writeUnmergedDictionaries: (dictionaries: Dictionary[], configuration: IntlayerConfig, env: "prod" | "dev") => Promise<UnmergedDictionaryOutput>;
//#endregion
export { UnmergedDictionaryOutput, UnmergedDictionaryResult, groupDictionariesByKey, writeUnmergedDictionaries };
//# sourceMappingURL=writeUnmergedDictionary.d.ts.map