import { type JSX } from 'react'; import type { DataTableColumnType, DataTableGanttColumnConfig, DataTableLogContentColumnConfig } from './column-types-types.js'; import type { ColumnDef, ColumnDefBase, ColumnMeta } from '../../hooks/useTable/types.js'; import type { DataTableDisplayColumnDef } from '../../public.api.js'; import type { DataTableAlignmentColumnDef } from '../ColumnAlignment.js'; /** * Function that sets the column alignment and the custom cell renderer * based on the column type from the column definition * @param columnDef - column definition prop * * @returns the column alignment and the custom cell renderer based on the column type * @internal */ export declare function applyColumnTypes(columnDef: DataTableDisplayColumnDef, composedDef: ColumnDef): { alignment?: DataTableAlignmentColumnDef['alignment']; cell?: ColumnDefBase['cell']; enableSorting?: boolean; header?: string | (() => JSX.Element); /** * Enables user actions for a specific column type. * If set to `true`, all user actions can be enabled, while `false` disables all user actions. * Additionally, the configuration `{type: 'chart'}` ensures that only specific user actions are enabled. */ enableUserActions?: boolean | { type: 'chart'; }; meta?: ColumnMeta; }; /** * Gets text alignment of a column based on its type. * @internal */ export declare function getAlignmentBasedOnType(columnType?: DataTableColumnType): DataTableAlignmentColumnDef['alignment']; /** * Typeguard function ensures that the defined config in the column definition contains certain properties. * @internal */ export declare function isDatatableGanttColumnConfig(config: unknown): config is DataTableGanttColumnConfig; /** * Typeguard function ensures that the defined config in the column definition contains certain properties. * @internal */ export declare function isDatatableLogContentColumnConfig(config: unknown): config is DataTableLogContentColumnConfig;