"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FocusManager = void 0;
class FocusManager {
    #doc;
    #previousFocused = null;
    constructor(doc = document) {
        this.#doc = doc;
    }
    storeFocus() {
        this.#previousFocused = this.#doc.activeElement;
    }
    restoreFocus(options) {
        this.#previousFocused?.focus?.(options);
    }
}
exports.FocusManager = FocusManager;
//# sourceMappingURL=focus-manager.js.map
