import * as React from 'react'; import type { useDraggableEvent } from "./useDraggableEvent.mjs"; import { SchedulerEventSide } from "../../models/index.mjs"; export declare function useEventResizeHandler(parameters: useEventResizeHandler.Parameters): useEventResizeHandler.ReturnValue; export declare namespace useEventResizeHandler { interface State { /** * Whether the resize handler is targeting the start date of the event. */ start: boolean; /** * Whether the resize handler is targeting the end date of the event. */ end: boolean; } interface PublicParameters { /** * The date to edit when dragging the resize handler. */ side: SchedulerEventSide; } interface Parameters extends PublicParameters { /** * The ref to the event's resize handler root element. */ ref: React.RefObject; /** * Gets the drag data. * @param {{ clientX: number, clientY: number }} input The input object provided by the drag and drop library for the current event. * @returns {any} The shared drag data. */ getDragData: (input: { clientX: number; clientY: number; }) => any; /** * The context value from the event component wrapping the resize handler. */ contextValue: useDraggableEvent.ContextValue; } interface ReturnValue { /** * The state to pass to the useRenderElement hook. */ state: State; /** * Whether the resize handler is enabled. */ enabled: boolean; } }