/** * VegaNonceManager is responsible for managing the CSP nonce value. */ export declare class VegaNonceManager { /** * The Content Security Policy nonce value (private). */ private _nonce?; /** * Creates a new instance of the nonce manager. * * If a `nonce` is provided, it will be used as the internal nonce value. * If not provided, and if the environment supports `tryGetDocument`, attempts to retrieve * the nonce from a meta tag with the name "csp-nonce" in the document. * * @param {string | undefined} nonce - An optional string representing the CSP nonce to use. */ constructor(nonce?: string); /** * Sets the Content Security Policy (CSP) nonce value. * * @param {string | undefined} nonce - The nonce string to be set, or `undefined` to clear the nonce. */ set nonce(nonce: string | undefined); /** * Gets the current Content Security Policy (CSP) nonce value. * * @returns {string | undefined} The current nonce string, or `undefined` if not set. */ get nonce(): string | undefined; /** * Monkey-patches document.head.insertBefore to automatically add the CSP nonce * to dynamically injected