import * as React from 'react'; import * as PropTypes from 'prop-types'; import { ConfigConsumerProps } from '../config-provider'; export interface PullToRefreshLocale { activate?: string; deactivate?: string; finish?: object; } export interface Indicator { activate?: React.ReactNode; deactivate?: React.ReactNode; release?: React.ReactNode; finish?: React.ReactNode; } interface PullPropsType { direction?: 'down' | 'up'; distanceToRefresh?: number; refreshing?: boolean; onRefresh: () => void; indicator?: Indicator; damping?: number; prefixCls?: string; className?: string; style?: React.CSSProperties; } export default class PullToRefresh extends React.Component { static contextTypes: { antLocale: PropTypes.Requireable; }; static defaultProps: { direction: string; distanceToRefresh: number; damping: number; }; renderPullToRefresh: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export {};