import { WebInAppDisplaySettings } from '.'; import { CloseButtonPosition, InAppMessage, PaintIframeProps } from './types'; interface Breakpoints { smMatches: boolean; mdMatches: boolean; lgMatches: boolean; xlMatches: boolean; } export declare const generateWidth: ({ smMatches, mdMatches, lgMatches, xlMatches }: Breakpoints, position: WebInAppDisplaySettings['position']) => string; export declare const addStyleSheet: (doc: Document, style: string) => void; export declare const preloadImages: (imageLinks: string[], callback: () => void) => void; export declare const filterHiddenInAppMessages: (messages?: Partial[]) => Partial[]; export declare const filterOnlyReadAndNeverTriggerMessages: (messages?: Partial[]) => Partial[]; export declare const sortInAppMessages: (messages?: Partial[]) => Partial[]; export declare const generateCloseButton: (id: string, doc: Document, position?: CloseButtonPosition, color?: string, size?: string | number, iconPath?: string, topOffset?: string, sideOffset?: string) => HTMLButtonElement; export declare const generateAbsoluteDismissButton: ({ id, document }: { id: string; document: Document; }) => HTMLButtonElement; export declare const generateLayoutCSS: (baseCSSText: string, position: WebInAppDisplaySettings['position'], isMobileBreakpoint: boolean, topOffset?: string, bottomOffset?: string, rightOffset?: string) => string; /** * * @param html * @returns { HTMLIFrameElement } iframe with html string of an inapp message wrapped in onload */ export declare const wrapWithIFrame: (html: string) => HTMLIFrameElement; /** Generates an iframe with the provided html and appends it to the DOM. */ export declare const paintIFrame: ({ html, position, shouldAnimate, srMessage, topOffset, bottomOffset, rightOffset, maxWidth }: PaintIframeProps) => Promise; export declare const addButtonAttrsToAnchorTag: (node: Element, ariaLabel: string) => void; export declare const trackMessagesDelivered: (messages: Partial[] | undefined, packageName: string) => Promise; export declare const paintOverlay: (color?: string, opacity?: number, shouldAnimate?: boolean) => HTMLDivElement; export declare const getHostnameFromUrl: (url: string) => string | undefined; export declare const setCloseButtonPosition: (iframe: HTMLIFrameElement, closeButton: HTMLButtonElement, position?: CloseButtonPosition, sideOffset?: string, topOffset?: string) => void; export {};