import { CommonProps, type CopyableTextProps, type Styleable } from "@trackunit/react-components"; import type { ReactElement } from "react"; type CopyableCellSecondary = Pick; export interface CopyableCellProps extends CommonProps, Pick, Styleable { /** * When provided, renders a multi-line cell with a secondary row below the primary. * The secondary row is independently copyable. */ readonly secondary?: CopyableCellSecondary; } /** * CopyableCell renders a table cell with click-to-copy functionality. * Supports single-line and multi-line layouts. * * ### When to use * Use CopyableCell inside table column definitions when a cell value (ID, name, reference) should be copyable. * * ### When not to use * For standalone copyable text outside of tables, use `CopyableText` from `@trackunit/react-components`. * * @example Single-line copyable cell * ```tsx * import { CopyableCell } from "@trackunit/react-table-base-components"; * * const cell = ({ getValue }) => ( * * ); * ``` * @example Multi-line copyable cell * ```tsx * import { CopyableCell } from "@trackunit/react-table-base-components"; * * const cell = ({ row }) => ( * * ); * ``` * @param {CopyableCellProps} props - The props for the CopyableCell component * @returns {ReactElement} CopyableCell component */ export declare const CopyableCell: ({ text, secondary, "data-testid": dataTestId, className, style, }: CopyableCellProps) => ReactElement; export {};