import React from 'react'; import GanttStore from './store'; import { DefaultRecordType, Gantt } from './types'; export interface GanttContext { prefixCls: string; store: GanttStore; getBarColor?: (record: Gantt.Record) => { backgroundColor: string; borderColor: string; }; showBackToday: boolean; showUnitSwitch: boolean; onRow?: { onClick: (record: Gantt.Record) => void; }; tableIndent: number; barHeight: number; expandIcon?: ({ level, collapsed, onClick, }: { level: number; collapsed: boolean; onClick: (event: React.MouseEvent) => void; }) => React.ReactNode; renderBar?: (barInfo: Gantt.Bar, { width, height }: { width: number; height: number; }) => React.ReactNode; renderInvalidBar?: (element: React.ReactNode, barInfo: Gantt.Bar) => React.ReactNode; renderGroupBar?: (barInfo: Gantt.Bar, { width, height }: { width: number; height: number; }) => React.ReactNode; renderBarThumb?: (item: Gantt.Record, type: 'left' | 'right') => React.ReactNode; onBarClick?: (record: Gantt.Record) => void; tableCollapseAble: boolean; scrollTop: boolean | React.CSSProperties; alwaysShowTaskBar?: boolean; renderLeftText?: (barInfo: Gantt.Bar) => React.ReactNode; renderRightText?: (barInfo: Gantt.Bar) => React.ReactNode; onExpand?: (record: Gantt.Record, collapsed: boolean) => void; hideTable?: boolean; } declare const context: React.Context>; export default context;