/// import React from 'react'; import type { ThemeProps } from 'jamis-core'; export interface SpinnerProps extends ThemeProps { show: boolean; className?: string; spinnerClassName?: string; /** * @deprecated 已废弃,没有作用 */ mode?: string; size?: 'sm' | 'lg' | ''; icon?: string | React.ReactNode; tip?: string; tipPlacement?: 'top' | 'right' | 'bottom' | 'left'; delay?: number; overlay?: boolean; } export declare class Spinner extends React.Component { static defaultProps: { show: boolean; className: string; spinnerClassName: string; size: ""; icon: string; tip: string; tipPlacement: "bottom"; delay: number; overlay: boolean; }; render(): JSX.Element; } declare const _default: { new (props: Pick, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps): { context: string; ref: any; childRef(ref: any): void; getWrappedInstance(): any; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, "mode"> & { size?: "" | "sm" | "lg" | undefined; overlay?: boolean | undefined; show?: boolean | undefined; icon?: React.ReactNode; delay?: number | undefined; spinnerClassName?: string | undefined; tip?: string | undefined; tipPlacement?: "right" | "left" | "top" | "bottom" | undefined; } & { className?: string | undefined; } & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context; ComposedComponent: React.ComponentType; } & import("hoist-non-react-statics").NonReactStatics & { ComposedComponent: typeof Spinner; }; export default _default;