import { getUnmergedDictionaries } from "./unmerged-dictionaries-entry/dist/esm/index.mjs";
import { relative } from "node:path";
import { colon, colorizeKey, colorizeNumber, getAppLogger, getConfiguration } from "@intlayer/config";

//#region ../cli/dist/esm/listContentDeclaration.mjs
const listContentDeclarationRows = (options) => {
	const config = getConfiguration(options?.configOptions);
	const unmergedDictionariesRecord = getUnmergedDictionaries(config);
	return Object.values(unmergedDictionariesRecord).flat().map((dictionary) => ({
		key: dictionary.key ?? "",
		path: relative(config.content.baseDir, dictionary.filePath ?? "Remote")
	}));
};

//#endregion
export { listContentDeclarationRows };
//# sourceMappingURL=listContentDeclaration.mjs.map