/** Determines whether a given DOM element is visible within the current viewport, with an optional pixel buffer. @param elem The DOM element to check. @param buffer Extra pixel margin around the viewport boundary. */ export default function (elem: Element, buffer?: number): boolean;