import { ReactElement } from 'react'; import { FiltersMap } from '@wix/bex-core'; import { RowItem, TableFoldersState } from '../../state'; import { ActionsCell } from '../ActionsCell'; import { PartialAllFilters } from '../../state/FoldersAndItemsCollectionsState'; import { CollectionTableWSRTableBaseProps } from '../CollectionTable/CollectionTableWSRTable'; import { TableFoldersColumn } from './TableFolders.types'; import { MultiCollectionBulkActionModalRenderProps, MultiCollectionBulkActionToolbarRenderProps } from '../BulkAction'; import { CollectionTableBaseCommonProps } from '../CollectionTable/CollectionTableBaseCommonProps'; type TableFolderWSRTableBaseProps = CollectionTableWSRTableBaseProps, T1, PartialAllFilters>; export interface TableFoldersContentProps extends Omit, 'renderEmptyState' | 'actionsCell' | 'sticky' | 'topNotification' | 'selectionDisabled'>, CollectionTableBaseCommonProps { dataHook?: string; /** A TableFoldersState instance created using [useTableFolders](/pages/cairo/?path=/story/common-hooks--usetablefolders). */ state: TableFoldersState; /** The same as [InfiniteScrollTable.columns](/pages/cairo/?path=/story/components-collection--table), with the addition of `renderFolder` property. */ columns: TableFoldersColumn[]; /** Specific entry for rendering the item icon, defaults to simple `Avatar` (for folders a `Folder` icon is rendered). */ iconColumn?: TableFoldersColumn; onRowClick?: (item: T1, index: number) => void; /** Callback for folder row click */ onFolderRowClick?: (item: T2, index: number) => void; /** Disables row checkbox */ selectionDisabled?: (item: T1 | T2) => void; /** A render function to be rendered when there're no items to show in the table */ renderEmptyState?: () => ReactElement; folderActionsCell?: ActionsCell; topNotification?: ReactElement; /** * Render a custom toolbar when more than 1 item is selected.
* The function accepts the following parameters * * `isSelectAll`: Indicates whether the "Select All" checkbox is checked * * `openModal`: Opens the a modal that contains the component from `bulkActionModal` render prop * * `closeModal`: Closes the a modal that contains the component from `bulkActionModal` render prop * * `clearSelection`: Clears all existing selection, call this after the action on the selected items was done * * `openConfirmModal`: Opens a `` to confirm an action about to be applied on the selected items. * * > When passed, enables `showSelection` by default. * */ bulkActionToolbar?: MultiCollectionBulkActionToolbarRenderProps; /** * Render a modal to be opened from `bulkActionToolbar`.
* The function accepts the following parameters * * `isSelectAll`: Indicates whether the "Select All" checkbox is checked * * `closeModal`: Closes the a modal */ bulkActionModal?: MultiCollectionBulkActionModalRenderProps; } declare function _TableFoldersContent(props: TableFoldersContentProps): JSX.Element; export declare const TableFoldersContent: typeof _TableFoldersContent & { displayName: string; }; export {}; //# sourceMappingURL=TableFoldersContent.d.ts.map