/*!
 * Copyright (c) 2026 Vertex Software LLC. All rights reserved.
 */
'use strict';

var index = require('./index-C_J7n4Dv.js');

// eslint-disable-next-line no-restricted-imports
function readDOM(task) {
    index.readTask(task);
}
function writeDOM(task) {
    index.writeTask(task);
}
function debounceEvent(event, wait) {
    let timer = undefined;
    function debounce(value) {
        window.clearTimeout(timer);
        timer = window.setTimeout(() => event.emit(value), wait);
    }
    return {
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        emit: debounce,
        dispose() {
            window.clearTimeout(timer);
        },
    };
}

exports.debounceEvent = debounceEvent;
exports.readDOM = readDOM;
exports.writeDOM = writeDOM;
//# sourceMappingURL=stencil-9hy3r5qp.js.map

//# sourceMappingURL=stencil-9hy3r5qp.js.map