/*! * Copyright (c) 2017-present Ghostery GmbH. All rights reserved. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { IBackgroundCallback, IMessageFromBackground } from '@ghostery/adblocker-content'; /** * Takes care of injecting cosmetic filters in a given window. Responsabilities: * - Inject scripts. * - Block scripts. * * NOTE: Custom stylesheets are now injected from background. * * All this happens by communicating with the background through the * `backgroundAction` function (to trigger request the sending of new rules * based on a domain or node selectors) and the `handleResponseFromBackground` * callback to apply new rules. */ export declare function injectCosmetics(window: Pick, enableMutationObserver?: boolean, getCosmeticsFilters?: (_: IBackgroundCallback) => Promise): void; //# sourceMappingURL=index.d.ts.map