import { DocumentDir } from './getDocumentDir'; export type ScrollType = 'default' | 'reverse' | 'negative'; /** * Based on the jquery plugin https://github.com/othree/jquery.rtl-scroll-type * * Types of scrollLeft, assuming scrollWidth=100 and direction is rtl. * * Type | <- Most Left | Most Right -> | Initial * ---------------- | ------------ | ------------- | ------- * default | 0 | 100 | 100 * negative (spec*) | -100 | 0 | 0 * reverse | 100 | 0 | 0 * * Edge 85: default * Safari 14: negative * Chrome 85: negative * Firefox 81: negative * IE11: reverse * * spec* https://drafts.csswg.org/cssom-view/#dom-window-scroll */ export declare function detectScrollType(): ScrollType; export declare function getNormalizedScrollLeft(element: Element, direction: DocumentDir): number;