import { getContext, setContext } from 'svelte';
import { SvelteMap } from 'svelte/reactivity';
const key = Symbol('object-visibility-context');
export const provideVisibility = () => {
    const map = new SvelteMap();
    setContext(key, map);
};
export const useVisibility = () => {
    return getContext(key);
};
