const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
const require_normalizePath = require('./utils/normalizePath.cjs');
const require_getExtension = require('./utils/getExtension.cjs');
let node_path = require("node:path");

//#region ../@intlayer/config/dist/esm/alias.mjs
const getAlias = ({ configuration, format = "esm", formatter = (value) => value }) => {
	const extension = require_getExtension.getExtension(configuration, format);
	const { mainDir, configDir, baseDir } = configuration.content;
	const fixedDictionariesPath = formatter(require_normalizePath.normalizePath((0, node_path.relative)(baseDir, (0, node_path.join)(mainDir, `dictionaries.${extension}`))));
	const fixedUnmergedDictionariesPath = formatter(require_normalizePath.normalizePath((0, node_path.relative)(baseDir, (0, node_path.join)(mainDir, `unmerged_dictionaries.${extension}`))));
	const fixedRemoteDictionariesPath = formatter(require_normalizePath.normalizePath((0, node_path.relative)(baseDir, (0, node_path.join)(mainDir, `remote_dictionaries.${extension}`))));
	const fixedDynamicDictionariesPath = formatter(require_normalizePath.normalizePath((0, node_path.relative)(baseDir, (0, node_path.join)(mainDir, `dynamic_dictionaries.${extension}`))));
	const fixedFetchDictionariesPath = formatter(require_normalizePath.normalizePath((0, node_path.relative)(baseDir, (0, node_path.join)(mainDir, `fetch_dictionaries.${extension}`))));
	const fixedConfigurationPath = formatter(require_normalizePath.normalizePath((0, node_path.relative)(baseDir, (0, node_path.join)(configDir, `configuration.json`))));
	return {
		"@intlayer/dictionaries-entry": fixedDictionariesPath,
		"@intlayer/unmerged-dictionaries-entry": fixedUnmergedDictionariesPath,
		"@intlayer/remote-dictionaries-entry": fixedRemoteDictionariesPath,
		"@intlayer/dynamic-dictionaries-entry": fixedDynamicDictionariesPath,
		"@intlayer/fetch-dictionaries-entry": fixedFetchDictionariesPath,
		"@intlayer/config/built": fixedConfigurationPath
	};
};

//#endregion
exports.getAlias = getAlias;
//# sourceMappingURL=alias.cjs.map