import { default as React } from 'react'; import { TooltipProps } from '../../../Tooltip/Tooltip'; export type ColumnHeaderBaseHeader = { /** Content of the header */ text: string; /** Tooltip content */ tooltipContent?: TooltipProps['tooltipContent']; /** Background color */ bgColor: 'blue' | 'red' | 'light-gray' | 'yellow' | 'light-purple' | 'white'; }; export type ColumnHeaderBasesubHeader = { /** Content of the sub header */ text: string; /** Tooltip content */ tooltipContent?: TooltipProps['tooltipContent']; /** Sub header color */ color: 'red' | 'purple' | 'yellow'; }; export type ColumnHeaderBase = { /** Header props */ header?: ColumnHeaderBaseHeader; /** Sub header props */ subHeader?: ColumnHeaderBasesubHeader; /** Dynamic styles passed in from the parent component */ containerClassName?: string; /** Needed to determine the width of the column */ columnWidth: number; /** Function to be called when the header cell is clicked */ onHeaderCellClick: () => void; /** Function to be called when the header cell is closed */ headerCancelCallout?: () => void; /** Whether the header cell is disabled */ disabled?: boolean; /** Text to be displayed in the header */ headerText: string; /** Children to be displayed in the header */ headerChildren?: React.ReactNode; /** Error count to be displayed in the header */ errorCount?: number; }; type WithCellCount = ColumnHeaderBase & { /** Error count to be displayed in the header */ errorCount: number; /** Whether to show the count */ showCount: boolean; }; type WithoutCellCount = ColumnHeaderBase & { /** Error count to be displayed in the header */ errorCount?: never; /** Whether to show the count */ showCount?: never; }; export type ColumnHeaderType = WithCellCount | WithoutCellCount; declare const ColumnHeader: ({ errorCount, header, showCount, subHeader, containerClassName, columnWidth, onHeaderCellClick, disabled, headerText, headerChildren, headerCancelCallout, }: ColumnHeaderType) => import("react/jsx-runtime").JSX.Element; export default ColumnHeader;