/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
//#region src/flags.ts
const isNode = typeof process !== "undefined";
/** UDS feature flags */
let featureFlags = {
	useGetStylesCache: isNode ? process.env.NEXT_PUBLIC_UDS_FEATURE_USE_STYLE_CACHE === "true" : false,
	skipTailwindMerge: isNode ? process.env.NEXT_PUBLIC_UDS_FEATURE_SKIP_TAILWIND_MERGE === "true" : false
};
/**
* Sets/overrides feature flags
* @param flags Flag overrides
* @returns Updated feature flags
*/
const updateFeatureFlags = (flags) => {
	featureFlags = {
		...featureFlags,
		...flags
	};
	return featureFlags;
};
const getFeatureFlags = () => featureFlags;

//#endregion
export { getFeatureFlags, updateFeatureFlags };