import { Resource } from '../locale/resources/iResource'; /** * Html Utility to build consent help overlay. */ export declare class HtmlUtil { static resource: Resource; /** * Shows the overlay with the consent help dialog. Html is loaded on iframe with blob url as source. * @param consentCode Consent code generated which will be shown to user on the overlay. * @param portNumber Port number of the listener running on machine. Needed to load help images. */ static showConsentOverlay: (consentCode: number, portNumber: number) => void; /** * Hides overlay */ static hideConsentOverlay: () => void; /** * Show error overlay */ static showErrorOverlay: () => void; private static cssToBind; private static consentHelpTemplate; private static errorTemplate; private static token; private static portNumber; /** * Adds an overlay div to html body. */ private static buildConsentHelpHtml; /** * Constructs a html page to be loaded. * @param param0 Object containing the css and html to show as string * @returns Source to load as blob url. */ private static generatePageURL; /** * Creates a blob URL * @param code Content to be stored in blob * @param type Type of blob object to create * @returns Source to load as blob url. */ private static getBlobURL; /** * Returns complete html page as string * @param param0 Object containing the css, cssURL and html to show as string * @returns Complete html page as string */ private static getCompleteHtml; /** * Loads the Iframe with overlay content * @param iframe Iframe on which overlay content will be loaded * @param html Html content to load * @param css Css to bind to the html */ private static loadIFrame; }