import React, { ReactNode } from "react"; import { TableContextProps } from "./__internal__/contexts"; export type BorderThickness = "none" | "small" | "medium" | "large"; export interface TableProps extends Pick, "summary" | "aria-label" | "aria-labelledby" | "aria-describedby"> { /** * The content of the table. */ children: React.ReactNode; /** * Indicates whether the table is draggable. */ isDraggable?: boolean; /** * The maximum width of the table. * This constrains the table scroll container and enables horizontal scrolling. */ maxWidth?: string; /** * The maximum height of the table's scroll container. * This constrains the table scroll container and enables vertical scrolling. */ maxHeight?: string; /** * The pagination component for the table. */ pagination?: ReactNode; /** * Indicates which column(s) should remain sticky when scrolling. */ stickyColumn?: "first" | "last" | "both"; /** * Indicates which row(s) should remain sticky when scrolling. */ stickyRow?: "header" | "footer" | "both"; /** * The variant of the table. */ variant?: TableContextProps["variant"]; /** * The size of the table. */ size?: TableContextProps["size"]; /** * Indicates whether the table should have zebra striping. */ isZebraStriped?: boolean; /** * The outer borders of the table. This only applies to the `subtle-white` * and `subtle-grey` variants; the `prominent` variant always has an outer border. */ outerBorders?: "none" | "small"; /** * The thickness of the horizontal borders within the table. */ horizontalBorderThickness?: BorderThickness; /** * The thickness of the vertical borders within the table. */ verticalBorderThickness?: BorderThickness; } declare const Table: ({ children, maxHeight, maxWidth, isDraggable, pagination, stickyColumn, stickyRow, variant, size, isZebraStriped, outerBorders, horizontalBorderThickness, verticalBorderThickness, ...props }: TableProps) => React.JSX.Element; export default Table;