import { Variants } from "../../atoms/types/variants.js"; import { FC, MouseEventHandler } from "react"; import { IconData } from "@equinor/eds-icons"; //#region src/molecules/TableHeader/TableHeader.d.ts interface TableHeaderProps { as?: 'th' | 'div'; variant?: Extract; onClick?: MouseEventHandler; leadingIcon?: IconData; trailingAction?: { icon: IconData; onClick: () => void; }; sorting?: { isSorting?: 'asc' | 'desc'; onSortClick?: MouseEventHandler; }; children: string; } /** * @param as - HTML element to render as * @param variant - Form variant (error, warning) * @param onClick - Click handler for the cell * @param leadingIcon - Icon to display before the text, only has defaults when a variant has been set * @param trailingAction - Button with icon after text, but before sort icon * @param sorting - If the sorting should be enabled, { isSorting, onSortClick } where isSorting determines if the sort icon is shown and onSortClick is the click handler for sorting * @param children - Text content of the header cell */ declare const TableHeader: FC; //#endregion export { TableHeader, TableHeaderProps };