export class FocusManager {
    #doc;
    #previousFocused = null;
    constructor(doc = document) {
        this.#doc = doc;
    }
    storeFocus() {
        this.#previousFocused = this.#doc.activeElement;
    }
    restoreFocus(options) {
        this.#previousFocused?.focus?.(options);
    }
}
//# sourceMappingURL=focus-manager.js.map
