/** * @file PullRefresh.tsx * @description 下拉刷新 * @author hongyang03 */ /// import type { PropsWithChildren } from 'react'; import React from 'react'; import type { ClassNamesFn, TranslateFn } from 'jamis-core'; export interface PullRefreshProps extends PropsWithChildren { classnames: ClassNamesFn; classPrefix: string; translate: TranslateFn; 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 _default: { new (props: Omit, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, keyof import("jamis-core").ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType>>; } & import("hoist-non-react-statics").NonReactStatics>, {}> & { ComposedComponent: React.ForwardRefExoticComponent>; }; export default _default;