import * as React from 'react'; import { BaseCheckboxProps, TableProps as DSTableProps } from '@strapi/design-system'; import { Entity } from '@strapi/types'; import { EmptyBodyTableProps } from './EmptyBodyTable'; interface TableProps extends Pick, Pick { children?: React.ReactNode; contentType: string; components?: { ConfirmDialogDeleteAll?: React.ElementType; ConfirmDialogDelete?: React.ElementType; }; headers?: TableHeadProps['headers']; isLoading?: boolean; onConfirmDeleteAll?: (ids: Array) => Promise; onConfirmDelete?: (id: TRows['id']) => Promise; rows?: Array; withBulkActions?: boolean; withMainAction?: boolean; renderBulkActionsBar?: (props: { selectedEntries: Array; clearSelectedEntries: () => void; }) => React.ReactNode; } interface TableRowProps extends Pick, 'withBulkActions' | 'withMainAction' | 'rows' | 'headers'>, Pick, 'entriesToDelete'> { onClickDelete: (id: TRows['id']) => void; onSelectRow: (row: { name: TRows['id']; value: boolean; }) => void; } /** * @deprecated * This component will be replaced by packages/core/helper-plugin/src/components/Table * in the next major release. */ declare const Table: ({ action, children, contentType, components, footer, headers, isLoading, onConfirmDeleteAll, onConfirmDelete, rows, withBulkActions, withMainAction, renderBulkActionsBar, ...rest }: TableProps) => import("react/jsx-runtime").JSX.Element; interface TableHeader { fieldSchema?: { type: string; }; name: string; metadatas: { sortable: boolean; label: string; mainField?: { name: string; }; }; } interface TableHeadProps { areAllEntriesSelected?: boolean; entriesToDelete?: Array; headers?: Array; onSelectAll: BaseCheckboxProps['onChange']; withMainAction?: boolean; withBulkActions?: boolean; } export { Table as DynamicTable }; export type { TableProps, TableRowProps, TableHeader, TableHeadProps }; //# sourceMappingURL=DynamicTable.d.ts.map