import React from 'react'; import { TableRowData, TableRowTools } from '../Table'; /** * Props for TableRow component. * @property data - Row data, including cell values and details for expansion. * @property tools - Optional React node or function for rendering row tools/actions. * @property expandable - If true, row can be expanded to show details. * @property expandButtonTooltip - Tooltip text for the expand/collapse button. * @property onExpandButtonClick - Optional callback when a row is expanded or collapsed. */ export type TableRowProps = { data: TableRowData; tools?: TableRowTools; expandable?: boolean; expandButtonTooltip?: string; onExpandButtonClick?: (data: TableRowData, expanded: boolean) => void; }; /** * Formats a cell value for rendering in the table. * * - If value is undefined, returns 'unknown'. * - If value is a valid React element, returns it directly. * - Otherwise, converts value to string. * * @param value - The cell value. * @returns {React.ReactNode} The formatted cell value. */ export declare const formatCellValue: (value: unknown) => React.ReactNode; /** * TableRow renders a single table row, with optional tools and expandable details. * * @param {TableRowProps} props - The props for the TableRow component. * @returns {JSX.Element} The rendered table row and (if expanded) its details row. */ export declare const TableRow: React.FC;