import { default as React } from 'react'; import { default as PropTypes } from 'prop-types'; import { VALID_ICON_NAMES } from '../icons/iconNames'; import { IconName } from '../types/Icon.types'; export { VALID_ICON_NAMES }; export type TimelineEventKind = "node" | "start" | "pending"; export interface TimelineEventProps { /** * Timeline node variant. */ kind?: TimelineEventKind; /** * Name of NDS icon to render inside the timeline node */ icon?: IconName; /** * Pass an image url to render the timeline node * as an avatar */ imgUrl?: string; /** * Initial to render in the timeline node * Overridden by: * - icon * - imgUrl */ initial?: string; /** * Timeline event content (any JSX) */ children?: React.ReactNode; /** * Hover tooltip content for the icon */ tooltip?: string; /** Render a custom circle node on the line */ renderNode?: () => React.ReactNode; } declare const TimelineEvent: { ({ kind, icon, imgUrl, initial, tooltip, children, renderNode, }: TimelineEventProps): React.JSX.Element; propTypes: { /** * Timeline node variant. */ kind: PropTypes.Requireable; /** * Name of NDS icon to render inside the timeline node */ icon: PropTypes.Requireable; /** * Pass an image url to render the timeline node * as an avatar */ imgUrl: PropTypes.Requireable; /** * Initial to render in the timeline node * Overridden by: * - icon * - imgUrl */ initial: PropTypes.Requireable; /** * Timeline event content (any JSX) */ children: PropTypes.Requireable>; /** * Hover tooltip content for the icon */ tooltip: PropTypes.Requireable; /** Render a custom circle node on the line */ renderNode: PropTypes.Requireable<(...args: any[]) => any>; }; }; export default TimelineEvent; //# sourceMappingURL=index.d.ts.map