import React, { type ReactElement } from 'react'; import { type RowProps } from './row'; type Content = { title: string; description: string; }; export interface RowsProps { /** * The data used to render the set of rows. Will be passed down via the `children` render prop. * * In addition to these props, any other data can be added to the object, and it will * be provided as props when rendering each cell. */ items?: Item[]; /** * Render function for child rows. Render props will contain an item from the * `items` prop above. */ render: (args: Item & { children?: Item[]; content?: Content; }) => ReactElement> | null; /** * This is an accessible name for the loading state's spinner. * The default text is "Loading". */ loadingLabel?: string; } declare function Rows({ items, render, loadingLabel, }: RowsProps): React.JSX.Element; export default Rows;