import { CSSProperties } from 'react'; import { ViewDimensions } from '../types/internal-interface'; /** * Measures the actual cell dimensions from the DOM. * * This utility function dynamically reads the actual rendered cell height * from the DOM (from `.sf-time-slots` or `.sf-work-cells-row` elements) * instead of relying on a hardcoded constant. This ensures accurate * positioning when CSS customizations are applied to cell dimensions. * * @param {HTMLElement | null} schedulerRef - Reference to the scheduler element * @returns {ViewDimensions} The measured dimensions object with cellHeight and optional cellWidth * @private */ export declare function getCellDimensions(schedulerRef: HTMLElement | null): ViewDimensions; /** * Returns the rendered timeline event height by measuring an appointment element from the DOM. * * @param {HTMLElement | null | undefined} element - Reference element for locating the appointment element. * @returns {number} The event height in pixels, or the default height when unavailable. * @private */ export declare function getTimelineEventHeight(element: HTMLElement | null | undefined): number; type ResourceRowHeightStyleArgs = (isGroupingEnabled: boolean, rowAutoHeight: boolean, resourceRowHeights: Map | undefined, groupIndex: number | undefined, maxEventsStack?: number, eventHeight?: number, isTimelineView?: boolean) => CSSProperties | undefined; /** * Builds the inline style object for the `--sf-scheduler-resource-row-height` * CSS variable based on the rowAutoHeight or maxEventsPerStack settings. * * - Returns `undefined` when grouping/auto-height is disabled, the view is * not a timeline view, or `groupIndex` is undefined/missing in the map. * * @param {boolean} isGroupingEnabled - Whether resource grouping is active * @param {boolean} rowAutoHeight - Whether row auto-height is enabled * @param {Map | undefined} resourceRowHeights - Map of groupIndex → row height in px (published by TimelineEvent for `rowAutoHeight=true`) * @param {number | undefined} groupIndex - The resource group index to look up * @param {number} [maxEventsStack] - User-supplied event-stack cap. When set, drives a fixed per-row height. * @param {number} [eventHeight] - Rendered event-bar height in pixels. Defaults to `DEFAULT_TIMELINE_EVENT_HEIGHT`. * @param {boolean} [isTimelineView=true] - Timeline-view guard. Pass `false` to skip * @returns {CSSProperties | undefined} Style object with the CSS var, or undefined * @private */ export declare const getResourceRowHeightStyle: ResourceRowHeightStyleArgs; export {};