import { RendererFactory2 } from '@angular/core'; import * as i0 from "@angular/core"; export declare class SgScrollHelperService { private isScrolling; private readonly scrollInterval; private readonly defaultScrollSpeed; /** * Indicated in vh. */ private offset; /** * Set 0 to keep scrolling speed fixed; 1 for linear scrolling speed growth; >1 for exponential scrolling speed growth. */ private scrollProgression; /** * Multiplies whole result. Minimum scrolling speed depends on this. */ private scrollMultiplier; private currentScrollSpeed; private topTimer; private bottomTimer; private renderer; constructor(rendererFactory: RendererFactory2); /** * @returns demarcation height for scrolling up. */ private calculateAlpha; /** * @returns demarcation height for scrolling down. */ private calculateBeta; /** * It's better to run this everytime, in case the user resized the window. * @returns Offset that was provided via vh into px offset. */ private calculatePxOffset; setCustomValues(scrollOffset: number | undefined, scrollMultiplier: number | undefined, scrollProgression: number | undefined): void; /** * Call this when dragging event should trigger some scrolling * @param event */ draggerHandler(event: DragEvent): void; /** * Registers the timers for the scrolling. * @param up true if going up, false if down */ private beginScrolling; /** * Deregisters timers. */ stopScrolling(): void; /** * Sets scrolling speed depending on how "close" the user is dragging the cards near the border of the window. * @param event * @param up */ private setScrollingSpeed; private resetScrollingSpeed; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }