import React from "react"; import type { StringKey } from "../../internal/type"; import type { VirtualTableColumn, VirtualTableRowSelection } from "./type"; import "./index.less"; export type { VirtualTableColumn, VirtualTableRowSelection } from "./type"; export interface VirtualTableProps { dataSource: RowType[]; columns: VirtualTableColumn[]; rowHeight: number; className?: string; rowClassName?: string; /** * if scrollX and scrollY is not provided, height: 100% and width: 100% will be used and please wrap the table with a container */ scrollY?: number; scrollX?: number; overscan?: number; loading?: boolean; emptyPlaceholder?: React.ReactElement | string | number; onRowClick?: (record: RowType, rowIndex: number) => void; /** * Default: index */ rowKey?: StringKey | "index"; headerHeight?: number; rowSelection?: VirtualTableRowSelection; } export declare const VirtualTable: ({ columns, rowHeight, dataSource, className, rowClassName, loading, emptyPlaceholder, onRowClick, scrollY, scrollX, overscan, rowSelection, headerHeight, rowKey }: VirtualTableProps) => React.JSX.Element;