import { RowSelectionState, Table } from "@tanstack/react-table"; //#region src/react/table/types.d.ts /** Props for the DataTable component */ interface DataTableProps { /** The query key to fetch the data */ queryKey: string; /** The parameters to pass to the query */ parameters: Record; /** The column to filter by */ filterColumn?: string; /** Optional placeholder for the filter input */ filterPlaceholder?: string; /** Optional function to transform data before creating table */ transform?: (data: any[]) => any[]; /** Optional labels for the DataTable component */ labels?: DataTableLabels; /** Optional accessibility label for the DataTable component */ ariaLabel?: string; /** Optional test ID for the DataTable component */ testId?: string; /** Optional CSS class name for the DataTable component */ className?: string; /** Enable row selection with checkboxes */ enableRowSelection?: boolean; /** Callback function to handle row selection changes */ onRowSelectionChange?: (rowSelection: RowSelectionState) => void; /** Optional children for full control mode */ children?: (table: Table) => React.ReactNode; /** Number of rows to display per page */ pageSize?: number; /** Options for the page size selector */ pageSizeOptions?: number[]; } /** Labels for the DataTable component */ interface DataTableLabels { /** The button text for the columns menu */ columnsButton?: string; /** The text for the no results message */ noResults?: string; /** The text for the rows found message */ rowsFound?: string; /** The text for the previous button */ previousButton?: string; /** The text for the next button */ nextButton?: string; /** The text for the rows per page label */ rowsPerPage?: string; /** The text for showing rows (e.g., "Showing ${from} to ${to} of ${total}") */ showing?: string; } //#endregion export { DataTableProps }; //# sourceMappingURL=types.d.ts.map