import { Component } from 'omi'; import { ScrollContainer, ScrollContainerElement } from '../common'; import { EasingFunction } from './easing'; export declare const canUseDocument: boolean; /** * 获取滚动容器 * 因为 document 不存在 scroll 等属性, 因此排除 document * window | HTMLElement * @param {ScrollContainerElement} [container='body'] * @returns {ScrollContainer} */ export declare const getScrollContainer: (container?: ScrollContainer) => ScrollContainerElement; export declare const getCssVarsValue: (name: string, element?: HTMLElement) => string; type ScrollTarget = HTMLElement | Window | Document; export declare function getScroll(target: ScrollTarget, isLeft?: boolean): number; interface ScrollTopOptions { container?: ScrollTarget; duration?: number; easing?: EasingFunction; } export declare const scrollTo: (target: number, opt: ScrollTopOptions) => Promise; export declare const getAttach: (node: any) => HTMLElement; export declare const addClass: (el: Element, cls: string) => void; export declare const removeClass: (el: Element, cls: string) => void; export declare function hasClass(el: Element, cls: string): boolean; export declare function domContains(parent: HTMLElement, child: HTMLElement): any; export declare const IS_NON_DIMENSIONAL: RegExp; export declare function setStyle(style: CSSStyleDeclaration, key: string, value: string | number | null): void; export declare const isNodeOverflow: (ele: Element | Element[]) => boolean; /** 为当前组件添加exportparts,用于跨多级shadowDOM可自定义样式 */ export declare const setExportparts: (that: Component, exts?: string[]) => void; export {};