/** * Common functionality shared between {@link WaferClient} and {@link WaferServer} * * @module Common */ /** * Updated the the targets of a component * * @param {function} apply - function that will query DOM and apply changes to matches * @param {Element|import("./server/element").ServerElement} el - the DOM root to query * @param {Object} opts - options for how to update the targets * @param {any} opts.value - the value to use in updates * @param {import("./types").Target[]} [opts.targets] - array of selectors and which updates that should be applied * * @returns {Promise} Return a promise so the updates can be `await`ed in server context * */ export function updateTargets(apply: Function, el: Element | import("./server/element").ServerElement, { value, targets }: { value: any; targets?: import("./types").Target[] | undefined; }): Promise;