/**
* Script blocker — blocks third-party scripts until consent is granted.
*
* Usage: mark scripts with type="text/plain" and data-consent-category:
*
*
* When the matching category is granted, the script is replaced with an
* executable copy. A MutationObserver catches dynamically added scripts.
*/
import type { ConsentManager } from "./consent-manager";
import type { ConsentCategories } from "./types";
/**
* Initialize script blocking tied to a ConsentManager.
* Automatically unblocks scripts when consent changes.
*
* @returns Cleanup function that disconnects the observer
*/
export declare function initScriptBlocker(manager: ConsentManager): () => void;
/**
* Manually unblock scripts for given categories.
* Useful for UMD/CDN users who don't use ConsentManager.
*/
export declare function unblockScriptsByCategory(categories: Partial>): void;