import { ComponentPropsWithoutRef } from 'react'; import { Table as TanstackTable } from '@tanstack/react-table'; import { ColumnDef } from '../../types'; import { DataTableProps, DataTableRowData } from '../DataTable'; /** * Props for the default/configured table footer rows * @extends TanstackTable * @extends ColumnDef[] */ export type DefaultTableFooterRowsProps = { table: TanstackTable; columns: ColumnDef[]; }; /** * Props for the custom table footer rows * @extends DataTableProps */ export type CustomTableFooterRowsProps = { columnCount: number; customFooter: DataTableProps["customFooter"]; table: TanstackTable; }; /** * Props for the DataTableFooter component * @extends ComponentPropsWithoutRef<"div"> */ export type DataTableFooterProps = { /** * The table instance from @tanstack/react-table to render */ table: TanstackTable; /** * The columns of the table */ columns: ColumnDef[]; /** * The custom footer of the table */ customFooter?: DataTableProps["customFooter"]; } & ComponentPropsWithoutRef<"div">; /** * Data table footer, which can be either a configured or custom footer * @param props - The props for the DataTableFooter component * @param props.table - The table instance from @tanstack/react-table to render * @param props.customFooter - The custom footer of the table * @param props.columns - The columns of the table */ export declare function DataTableFooter({ table, customFooter, columns, ...rest }: DataTableFooterProps): import("react/jsx-runtime").JSX.Element;