import { i as C } from "./vendor-preact-DThS2ZQ_.js";
//#region src/shared/uiConfig/uiConfig.ts
var uiConfig = {};
var listeners = /* @__PURE__ */ new Set();
function subscribe(listener) {
	listeners.add(listener);
	return () => {
		listeners.delete(listener);
	};
}
function getSnapshot() {
	return uiConfig;
}
/**
* Sets global UI configuration defaults for `@incodetech/ui`.
*/
function setUiConfig(next) {
	uiConfig = next;
	for (const listener of listeners) listener();
}
function useUiConfig() {
	return C(subscribe, getSnapshot);
}
//#endregion
export { useUiConfig as n, setUiConfig as t };
