import { default as React } from 'react'; import { default as PropTypes } from 'prop-types'; export interface LoadingShimProps { /** Loadable content area - will render normally unless `isLoading` is true */ children?: React.ReactNode; /** When `true`, the loading shim appears over child content */ isLoading?: boolean; /** Optional value for `data-testid` attribute */ testId?: string; /** Size of the loading indicator */ size?: "s" | "l"; } /** * Used to wrap a block of loadable content. When `isLoading` is set to true, * the content area will have an overlay and loading animation. */ declare const LoadingShim: { ({ isLoading, children, testId, size, }: LoadingShimProps): React.JSX.Element; propTypes: { /** Loadable content area - will render normally unless `isLoading` is true */ children: PropTypes.Requireable; /** When `true`, the loading shim appears over child content */ isLoading: PropTypes.Requireable; /** Optional value for `data-testid` attribute */ testId: PropTypes.Requireable; /** Size of the loading indicator */ size: PropTypes.Requireable; }; }; export default LoadingShim; //# sourceMappingURL=index.d.ts.map