import * as React from 'react'; import { BookingCalendarRenderItemProps } from '../bookingCalendarRenderItem/BookingCalendarRenderItem'; import { BookingCalendarItemT } from '../common'; import { BookingCalendarItemClasses } from './classes'; import { Duration, Moment } from 'moment'; export interface BookingCalendarItemBaseProps { item: T; itemIndex: number; laneIndex: number; from: Moment; till: Moment; step: Duration; /** * Number between [0,1] that tells how far from previous item (or start) this item starts */ marginStart: number; /** * Number between [0,1] that tells what part of the lane the item starts at */ start: number; /** * Like start but can be negative (go offscreen) */ realStart: number; /** * Actual start date shown on grid */ realFrom: Moment; /** * Some part of the item was cut from the beginning */ startIsCut: boolean; /** * Number between [0,1] that tells what part of the lane the item takes */ width: number; /** * Number between [0,1] that tells what part of the lane the item ends at */ end: number; /** * Like end but can be more than 1 (go offscreen) */ realEnd: number; /** * Actual end date shown on grid */ realTill: Moment; /** * Some part of the item was cut from the end */ endIsCut: boolean; BookingCalendarRenderItem?: React.ComponentType>; } export interface BookingCalendarItemProps extends BookingCalendarItemClasses, BookingCalendarItemBaseProps { } export declare function BookingCalendarItem(props: BookingCalendarItemProps): React.JSX.Element;