export default function createScroller(element: HTMLElement): { /** * @see http://james.padolsey.com/javascript/get-document-height-cross-browser/ * @return {Number} the scroll height of the document in pixels */ scrollHeight: () => number; /** * @see http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript * @return {Number} the height of the viewport in pixels */ height: () => any; /** * Gets the Y scroll position * @return {Number} pixels the page has scrolled along the Y-axis */ scrollY: () => any; };