import React from 'react'; import { LoadingProps } from '../loading'; import { PullDownAbleContextProps } from './container'; export type LoadingComponentProps = { /** * 0-1的进度 */ progress: number; updateLoadingHeight: (newHeight: number) => void; }; export type LoadingComponent = (props: P) => React.ReactElement; export interface EnableEvent { originalEvent: TouchEvent; target: EventTarget | null; currentTarget: HTMLElement; } export type GestureDivProps = Omit, HTMLDivElement>, 'onTouchMove' | 'onTouchStart' | 'onMouseDown'>; export type PullDownAbleProps = { children?: React.ReactNode; boxProps?: GestureDivProps; LoadingComponent?: LoadingComponent; allowPullDown?: (event: EnableEvent, pullDownAbleContext: PullDownAbleContextProps) => boolean; onPullDown?: () => void | Promise; }; export interface PullDownAbleRef { } export declare const DefaultLoadingComponent: LoadingComponent<{ loadingProps?: LoadingProps; }>; export type PullDownState = 'prepare' | 'pullDowning' | 'finish'; export declare function calculateVisualDistance(d: number, maxD: number): number; export declare const defaultAllowPullDown: (event: EnableEvent) => boolean; export declare const PullDownAble: React.ForwardRefExoticComponent>; //# sourceMappingURL=index.d.ts.map