/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import type { GanttComponent } from '../../gantt.component';
/**
 * Triggered every time a task is clicked.
 */
export interface TaskClickEvent {
    /**
     * The DOM event that triggered the `taskClick` event.
     */
    originalEvent: PointerEvent | KeyboardEvent;
    /**
     * The data item associated with the clicked task.
     */
    dataItem: any;
    /**
     * The Gantt component instance.
     */
    sender: GanttComponent;
    /**
     * The order index of the clicked task, defined by the number of rendered tasks in the Timeline.
     */
    index: number;
    /**
     * The type of the event that triggered the `taskClick` event.
     */
    type: 'click' | 'contextmenu' | 'dblclick';
}
