import React from "react"; import { PeriodType } from "./period"; import { PinType } from "./Pin"; import { TimelineRowType } from "./TimelineRow"; import { ZoomType } from "./zoom"; export interface TimelineProps extends React.HTMLAttributes { children: React.ReactNode; /** * Decides startingpoint in timeline. * Defaults to earliest date among the timeline periods. * @note Using this disables use of ZoomButtons. You will need to control zooming yourself. */ startDate?: Date; /** * Decides end-date for timeline. * Defaults to the latest date among the timeline periods. * @note Using this disables use of ZoomButtons. You will need to control zooming yourself. */ endDate?: Date; /** * Decides direction which periods are sorted/displayed. "left" ascends from earliest date on left. * @default "left" */ direction?: "left" | "right"; } interface TimelineComponent extends React.ForwardRefExoticComponent { /** * Built-in timeline row */ Row: TimelineRowType; /** * Built-in row period */ Period: PeriodType; /** * Built-in timeline pin */ Pin: PinType; /** * Built-in timeline zoom-component */ Zoom: ZoomType; } export declare const Timeline: TimelineComponent; export default Timeline;