import type { ReactElement, FunctionComponent } from 'react'; import { TooltipProps } from '@patternfly/react-core'; type Render = (config: { msg: string; }) => ReactElement | null; type CullingDate = string | number | Date; /** extends TooltipProps */ export interface StaleDataWarningProps extends Omit { /** Option to add custom css classes */ className?: string; /** Warning date for when object becomes stale */ staleWarning: CullingDate; /** Date when object becomes culled */ culled: CullingDate; /** Date when object becomes stale */ stale: CullingDate; /** Current date */ currDate: CullingDate; /** Optional prop to add custom children */ children?: React.ReactElement> | undefined; /** Option to add custom message ReactElement */ render?: Render; /** Optional custom warning message */ message?: string; /** Accessible label for the icon */ 'aria-label'?: string; } declare const StaleDataWarning: FunctionComponent; export default StaleDataWarning;