import React from 'react'; import { type ButtonProps } from './Button.js'; import type { UseTableColumnsResult } from './use-table-columns.js'; export interface TableColumnsMenuProps { /** What `useTableColumns` returned. */ columns: UseTableColumnsResult; /** The button's text, and so the menu's name. "Columns" by default. */ label?: string; variant?: ButtonProps['variant']; size?: ButtonProps['size']; } /** * TableColumnsMenu — a Button that opens a checklist of a table's columns: * checked is shown. A Menu with multiple selection, so each row is a * `menuitemcheckbox` that says whether its column is shown, and the menu * stays open while several are changed. * * A column that cannot be hidden is listed, checked and disabled, so the * list is every column and says why that one stays. The last one shown is * disabled too: a table with no columns is not a view of anything. */ export declare function TableColumnsMenu({ columns, label, variant, size, }: TableColumnsMenuProps): React.JSX.Element; //# sourceMappingURL=TableColumnsMenu.d.ts.map