import { createMedium, createSidecarMedium } from 'use-sidecar';
import { getSafeWindow, isBrowser } from '../../lib/globalObject.js';
export var mediumFocus = createMedium({}, function (_a) {
    var target = _a.target, currentTarget = _a.currentTarget;
    return ({ target: target, currentTarget: currentTarget });
});
export var mediumBlur = createMedium();
export var mediumEffect = createMedium();
export var mediumSidecar = createSidecarMedium({
    async: true,
    // focus-lock sidecar is not required on the server
    // however, it might be required for JSDOM tests
    ssr: isBrowser(getSafeWindow()),
});
//# sourceMappingURL=medium.js.map