/** * Gets the next positioned child relative to the element. Elements with `display: contents;` will be checked for their children. * * @param {HTMLElement} el - Reference element in the scrollable area * @returns HTMLElement */ export declare function getNextPositionedChild(el: Element | null, includeSelf?: boolean): HTMLElement | null; /** * Finds the nearest scrollable area. Defaults to document.scrollingElement. * * @param {HTMLElement?} element - Reference element in the scrollable area * @param {boolean} [includeHidden=false] - Treat elements with `overflow: hidden` as scrollable areas. * @returns Element */ export declare function getScrollParent(element: HTMLElement, includeHidden?: boolean): HTMLElement; /** * Checks if a parent scroll container has any overflow * @param {HTMLElement?} element * @returns boolean */ export declare function hasScroll(element?: HTMLElement): boolean; /** * Checks if a parent scroll container is scrolled to bottom * @param {HTMLElement?} element * @param {number} [bottomThreshold=32] - Nearby limit for the bottom. Needs to be at least 1 to catch float calculation errors. * @returns boolean */ export declare function isParentAtBottom(element: HTMLElement, bottomThreshold?: number): boolean; /** * Checks if a scroll container is scrolled to the bottom. Use this when the * scroll container is already known, to avoid re-resolving it via * {@link getScrollParent} (e.g. in a high-frequency scroll handler). * @param {HTMLElement} area - The scroll container. * @param {number} [bottomThreshold=32] - Nearby limit for the bottom. Needs to be at least 1 to catch float calculation errors. * @returns boolean */ export declare function isScrolledToBottom(area: HTMLElement, bottomThreshold?: number): boolean; /** * Scrolls a parent scroll container to the bottom using a reference element in the scrollable area. * * @param {string} direction - Scrolling towards "top" or "bottom". * @param {HTMLElement?} element - Element in the scroll area * @param {boolean} [smooth] - Use smooth scrolling instead of instant scrolling */ export declare function scrollParentTo(direction: "top" | "bottom", element?: HTMLElement, smooth?: boolean): Promise; /** * Waits for scroll to top/bottom to finish. * @param direction - Scrolling towards "top" or "bottom". * @param area - The area to check scroll on. * @param smooth - If the scroll is expected to be smooth. Includes fixing for interrupted smooth scrolls. */ export declare function whenScrolledTo(direction: "top" | "bottom", area: HTMLElement, smooth?: boolean): Promise; //# sourceMappingURL=scroll-position.d.ts.map