const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
const require_getConfiguration = require('../../../config/dist/esm/configFile/getConfiguration.cjs');
const require_index = require('./unmerged-dictionaries-entry/dist/esm/index.cjs');
let node_path = require("node:path");

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

//#endregion
exports.listContentDeclarationRows = listContentDeclarationRows;
//# sourceMappingURL=listContentDeclaration.cjs.map