import { ComponentProps, ComponentType, FunctionComponent, ReactNode } from 'react'; import { RcDefaultLoadingWithDelay } from './styles'; declare type RcLoadingProps = { /** is that is loading */ loading: boolean; /** Always keep the children in the DOM when `loading` */ keepMounted?: boolean; /** Always keep the children visible when `loading`, that need children is valid html when `keepVisible` id `false` */ keepVisible?: boolean; /** custom loading component */ LoadingComponent?: ComponentType; /** other props pass into Loading Component */ LoadingProps?: ComponentProps; /** container for wrapper loading */ children: ReactNode; }; /** * Provide a wrapper to wrap component with loading mask * * ### when `keepVisible = false` that children must be one valid html **element**, otherwise that style could not set correctly */ declare const RcLoading: FunctionComponent; export { RcLoading }; export type { RcLoadingProps };