export declare const whenScroll: (node: Element, callback: (scroll: { x: number; y: number; }) => void) => { destroy(): void; };