export interface Point { x: number; y: number; } export declare class CTYDom { /** * Get element rect * @param el * @returns {DOMRect} */ static getRect(el: Element): DOMRect; /** * Get element page point * @param {MouseEvent | TouchEvent} [event] * @returns {Point} */ static getPagePoint(event: MouseEvent | TouchEvent): Point; /** * Get element client point * @param {MouseEvent | TouchEvent} [event] * @returns {Point} */ static getClientPoint(event: MouseEvent | TouchEvent): Point; /** * Scroll to top * @param el * @param duration * @returns {Promise} */ static scrollTop(el: HTMLElement, duration?: number): Promise; /** * Scroll to bottom * @param el * @param duration * @returns {Promise} */ static scrollBottom(el: HTMLElement, duration?: number): Promise; /** * Scroll to point * @param el * @param x * @param y * @param duration * @returns {Promise} */ static scrollToPoint(el: HTMLElement, x: number | undefined | null, y: number | undefined | null, duration?: number): Promise; /** * Check if scroll end * @param el * @param threshold * @returns {boolean} */ static checkScrollEnd(el: HTMLElement, threshold?: number): boolean; }