/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { ConfigConsumerProps } from '../../config-provider'; declare const SpinSizes: ["small", "default", "large"]; export declare type SpinSize = typeof SpinSizes[number]; export declare type SpinIndicator = React.ReactElement; export interface SpinProps { prefixCls?: string; className?: string; spinning?: boolean; style?: React.CSSProperties; size?: SpinSize; tip?: string; delay?: number; wrapperClassName?: string; indicator?: SpinIndicator; } export interface SpinState { spinning?: boolean; notCssAnimationSupported?: boolean; } declare class Spin extends React.Component { static defaultProps: { spinning: boolean; size: "small" | "large" | "default"; wrapperClassName: string; }; static setDefaultIndicator(indicator: React.ReactNode): void; originalUpdateSpinning: () => void; constructor(props: SpinProps); componentDidMount(): void; componentDidUpdate(): void; componentWillUnmount(): void; debouncifyUpdateSpinning: (props?: SpinProps | undefined) => void; updateSpinning: () => void; cancelExistingSpin(): void; isNestedPattern(): boolean; renderSpin: ({ getPrefixCls, direction }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Spin;