/** * * 下拉刷新 */ import type { PropsWithChildren } from 'react'; import React from 'react'; export interface PullRefreshProps extends PropsWithChildren { disabled?: boolean; pullingText?: string; loosingText?: string; loadingText?: string; successText?: string; onRefresh?: () => void; loading?: boolean; successDuration?: number; loadingDuration?: number; } type statusText = 'normal' | 'pulling' | 'loosing' | 'success' | 'loading'; export interface PullRefreshState { status: statusText; offsetY: number; } declare const PullRefresh: React.ForwardRefExoticComponent>; export default PullRefresh;