import * as React from 'react'; /** * Helper checks for modal window scroll and for scroll-behavior * @param {number} top - Where to scroll * @param {HTMLElement | undefined} parentWithMaxScrollHeight - Parent element with max scroll height * * @returns {void} */ export declare const scrollToPosition: (top: number, parentWithMaxScrollHeight?: HTMLElement | undefined) => void; /** * Helper sets default tour element styles * @param {HTMLElement | null | undefined} element - Tour element * @param {string} activeClass - Active class * * @returns {void} */ export declare const removeActiveClass: (element: HTMLElement | null | undefined, activeClass: string) => void; /** * Helper sets tour element styles * @param {HTMLElement | null | undefined} element - Tour element * @param {string} activeClass - Active class * * @returns {void} */ export declare const setActiveClass: (element: HTMLElement | null | undefined, activeClass: string) => void; /** * Helper creates path of svg overlay element * @param {HTMLElement | null} element - Tour element * @param {number} borderRadius - Border radius of highlighted space * @param {number} padding - Padding of highlighted space * * @returns {string} Path of svg overlay element */ export declare const createOverlaySvgPath: (element: HTMLElement | null, borderRadius: number, padding: number) => string; /** * Helper calculates modal window position * @param {string} position - Position of modal window against tour element * @param {DOMRect} rect - DOMRect of tour element * @param {boolean} isScrolling - Flag defines if document is scrolling * @param {number} padding - Padding of highlighted space * * @returns {React.CSSProperties} Styles of modal window */ export declare const getModalPositionStyles: ({ isScrolling, padding, position, rect, }: { isScrolling: boolean; padding: number; position: "left" | "right" | "bottom" | "top" | "top-left" | "bottom-left" | "bottom-center" | "top-center"; rect: DOMRect; }) => React.CSSProperties; /** * Helper gets all parent elements of target element * @param {HTMLElement} element - Target element * * @returns {HTMLElement[]} Array of parent elements */ export declare const getParentNodes: (element: HTMLElement) => HTMLElement[]; /** * Helper gets max scroll height * @param {HTMLElement} element - Target element * * @returns {number} Scroll height */ export declare const getScrollHeight: (element: HTMLElement) => number; /** * Helper get parent node with max scroll height * @param {HTMLElement} element - Target element * * @returns {HTMLElement | undefined} Parent node with max scroll height */ export declare const getParentWithMaxScrollHeight: (element: HTMLElement) => HTMLElement | undefined;