import Service from '@ember/service'; import { Class } from "../../types.js"; /** * Allows Services to behave as Proxy objects for real objects, such as * window, document, navigator, Worker, etc. * * useful for consistently accessing unmockable objects and then replacing them * with fakes in testing. * * would it be worth recursively wrapping in a proxy for any reason? * * NOTE: This only works for one layer deep of properties * * @param {Object | Class} browserObject - the api to wrap a service around. */ declare function proxyService(ObjectToProxy: BrowserAPI | Class): Service & BrowserAPI; export { proxyService };