import type { PropsWithChildren, ReactElement, ReactNode } from 'react'; import type { DataTableColumnDef, DataTableRowData } from '../../public.api.js'; /** * Props for the `DataTableColumnActions` component. * @public */ export interface DataTableColumnActionsProps { /** * Content for the column actions. * Should be a `TableActionsMenu` directly or a function returning one. */ children: DataTableColumnActionsContent; /** * Column id that the given column actions apply to. If left empty, the given column actions * apply to all columns that allow column actions. */ column?: string; } /** * Type for the content of a DataTableColumnAction. * @public */ export type DataTableColumnActionsContent = ReactNode | ((column: DataTableColumnDef) => ReactElement); /** * Type for the column actions collected from the table configuration. * `column` is the extracted column prop of the ColumnActions slot component * and `action` is the content. * @internal */ export type CollectedColumnActions = Array<{ column?: string; action: DataTableColumnActionsContent; }>; /** * The slot component for defining column actions within the DataTable. * @public */ export declare function DataTableColumnActions(props: DataTableColumnActionsProps): null; /** * Typeguard function that will check if a ReactNode is of type DataTableColumnActions. * @internal */ export declare function isDataTableColumnActions(child: ReactNode): child is ReactElement>;