import * as React from 'react'; import { PaletteName } from "../../../utils/tokens.js"; import { TimeGridEventProps } from "./TimeGridEvent.types.js"; export interface UseTimeGridEventReturnValue { isRecurring: boolean; isDraggable: boolean; isStartResizable: boolean; isEndResizable: boolean; palette: PaletteName | undefined; isLessThan15Minutes: boolean; isLessThan30Minutes: boolean; isBetween30and60Minutes: boolean; /** * Data attributes shared by both variants. Spread on the root of the styled wrapper. */ rootDataAttributes: { 'data-under-hour': true | undefined; 'data-under-fifteen-minutes': true | undefined; 'data-recurrent': true | undefined; 'data-palette': PaletteName | undefined; }; /** * Start / end of the occurrence, plus the CSS variables used to position * the event inside the time-grid column. Spread on the styled wrapper. */ rootPositionProps: { start: TimeGridEventProps['occurrence']['displayTimezone']['start']; end: TimeGridEventProps['occurrence']['displayTimezone']['end']; style: React.CSSProperties; }; } export declare function useTimeGridEvent(occurrence: TimeGridEventProps['occurrence']): UseTimeGridEventReturnValue;