import type { CSSProperties, ReactNode } from 'react'; import type { SxProp } from '../Layout/sx.cjs'; import type { GanttScale } from './gantt/ganttUtils.cjs'; export type { GanttScale } from './gantt/ganttUtils.cjs'; export interface GanttTask { id: string; name: string; /** `Date` or ISO string. Date-only strings (`2026-03-01`) are read as local midnight. */ start: Date | string; /** * `Date` or ISO string. A date-only / midnight end is *inclusive* (the bar covers that whole * day); an end with a time of day is exact. Ignored for milestones. */ end: Date | string; /** 0–100. Draws a filled portion of the bar. */ progress?: number; /** Bar color. Defaults to the group's palette color. */ color?: string; /** Tasks sharing a `group` are listed together under a collapsible header. */ group?: string; /** Ids of tasks that must finish before this one starts (draws arrows). */ dependsOn?: string[]; /** Render as a diamond at `start` instead of a bar. */ milestone?: boolean; } export interface GanttChartProps { tasks: GanttTask[]; /** Zoom level. Defaults to a scale chosen from the date range; a scale too fine for the range is coarsened automatically. */ scale?: GanttScale; /** Max height of the chart in px; taller content scrolls vertically and only visible rows are rendered. Default 360. */ height?: number; /** Height of each task row in px. Default 36. */ rowHeight?: number; /** Width of the sticky task-name column in px. Default 200. Draggable at the header edge; narrow containers clamp it. */ nameWidth?: number; /** * Pixels per day, overriding the scale's default. The timeline is capped at ~20,000px, so a * value that would exceed it is reduced (coarser header scale) automatically. */ pxPerDay?: number; /** Show zoom in / out buttons. Default `false`. */ zoomControls?: boolean; /** Accessible label for the chart (group `aria-label` + hidden table caption). */ label?: string; /** Reference date for the today marker. Defaults to now. */ today?: Date | string; /** Draw the today marker. Default `true`. */ showToday?: boolean; /** Allow dragging bars to move / resize and arrow keys to move the focused bar. */ editable?: boolean; /** Called when an editable bar is moved or resized (snapped to whole days). Update `tasks` in response. */ onTaskChange?: (next: GanttTask, prev: GanttTask) => void; /** Called when a bar is clicked, or activated with Enter / Space. */ onTaskClick?: (task: GanttTask) => void; /** Group names that start collapsed. */ defaultCollapsed?: string[]; /** Animate bars, progress and dependency arrows. Default `true`; always off under `prefers-reduced-motion`. */ animate?: boolean; /** Show a skeleton instead of the chart. */ loading?: boolean; /** Content shown instead of the chart when there are no tasks. Default "No tasks". */ empty?: ReactNode; /** Custom tooltip body for a hovered task. */ renderTooltip?: (task: GanttTask) => ReactNode; className?: string; style?: CSSProperties; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx * merges into inline style; responsive sx injects a scoped class. Applied to * the chart's outer container. */ sx?: SxProp; } export declare function GanttChart({ tasks, scale: scaleProp, height, rowHeight, nameWidth, pxPerDay, zoomControls, label, today, showToday, editable, onTaskChange, onTaskClick, defaultCollapsed, animate, loading, empty, renderTooltip, className, style, sx, }: GanttChartProps): import("react/jsx-runtime").JSX.Element;