import { ReactNode } from 'react'; import { Theme } from './Theme'; import { Scroll } from './TimelineHorizontalModel'; import { Media } from './TimelineMediaModel'; import { TimelineProps } from './TimelineModel'; import { Dayjs } from 'dayjs'; /** * Represents the model for a timeline item. */ export interface TimelineItemModel { _dayjs?: Dayjs; active?: boolean; cardDetailedText?: string | string[] | ReactNode | ReactNode[]; cardSubtitle?: string | ReactNode; cardTitle?: string | ReactNode; content?: ReactNode | ReactNode[]; date?: number | string | Date; hasNestedItems?: boolean; id?: string; isNested?: boolean; items?: TimelineItemModel[]; media?: Media; position?: string; timelineContent?: ReactNode; title?: string | ReactNode; url?: string; visible?: boolean; } /** * Represents the model for a timeline card. */ export type TimelineCardModel = Pick & { autoScroll?: ({ pointOffset, pointWidth, timelinePointHeight, contentHeight, }: Partial) => void; customContent?: React.ReactNode | React.ReactNode[]; hasFocus?: boolean; iconChild?: React.ReactNode; onClick?: (id?: string) => void; onElapsed?: (id?: string) => void; slideItemDuration?: number; slideShowRunning?: boolean; theme?: Theme; wrapperId: string; } & Pick; //# sourceMappingURL=TimelineItemModel.d.ts.map