import { VegaSlimmer } from '../../../../../vega-slimmer/vega-slimmer-core';
import { VegaCalendar } from '../../../vega-calendar';
import { VegaCalendarDateClickInfo } from '../../../types';
import { CalendarDate } from '../../../../../helpers/calendar';
export declare type DateBlockRenderProps = {
  tabIndex?: number;
  role?: string;
  onClick?: (event: MouseEvent) => void;
  onDblClick?: (event: MouseEvent) => void;
  onKeyDown?: (event: KeyboardEvent) => void;
};
/**
 * Provides an abstract base class for rendering date blocks in a calendar component.
 * This class handles click and double-click events on date blocks and emits the appropriate events.
 */
export declare abstract class VegaCalendarDateBlockRenderer extends VegaSlimmer {
  protected enableDateClick: VegaCalendar['enableDateClick'];
  protected dateClickEmitter: VegaCalendar['dateClickEmitter'];
  protected dateDblClickEmitter: VegaCalendar['dateDblClickEmitter'];
  /**
   * Handles the date click or double-click event and emits the appropriate event based on the `enableDateClick` property.
   *
   * @param {MouseEvent} event - The mouse event triggered by the user.
   * @param {VegaCalendarDateClickInfo} eventInfo - Information about the clicked calendar date.
   */
  protected emit(event: MouseEvent, eventInfo: VegaCalendarDateClickInfo): void;
  /**
   * Checks if the click event should be handled based on the `enableDateClick` property and the event type.
   *
   * @param {MouseEvent} event - The mouse event to check.
   * @returns {boolean} - True if the event should be handled, false otherwise.
   */
  protected shouldHandleClickEvent(event: MouseEvent): boolean;
  /**
   * Checks if the double-click event should be handled based on the `enableDateClick` property and the event type.
   *
   * @param {MouseEvent} event - The mouse event to check.
   * @returns {boolean} - True if the event should be handled, false otherwise.
   */
  protected shouldHandleDblClickEvent(event: MouseEvent): boolean;
  /**
   * Generate the properties for rendering a date block based on its disabled state and calendar date.
   *
   * @param {boolean} isDisabled - Indicates if the date block is disabled.
   * @param {CalendarDate} calendarDate - The calendar date object.
   * @param {number} index - The index of the date block.
   * @returns {DateBlockRenderProps} - The properties for rendering the date block.
   */
  protected generateDateBlockRenderProps(isDisabled: boolean, calendarDate: CalendarDate, index?: number): DateBlockRenderProps;
  /**
   * Abstract method to handle date block click events. No matter whether it's a single click or double click.
   *
   * @param {MouseEvent} e - The mouse event triggered by the user.
   * @param {CalendarDate} calendarDate - The calendar date object associated with the clicked block.
   * @param {number} [index] - Optional index of the date block.
   */
  protected abstract handleDateBlockClick(e: MouseEvent, calendarDate: CalendarDate, index?: number): void;
}
