import { ListViewItem } from "./ListViewItem.mjs"; import { ReactNode, Ref } from "react"; import RAC from "react-aria-components"; import { SelectionMode } from "@react-types/shared"; type RemovedProps = 'className' | 'style' | 'selectionMode' | 'selectionBehavior' | 'dragAndDropHooks' | 'renderEmptyState' | 'orientation' | 'layout'; export interface ListViewProps extends Omit, RemovedProps> { /** * Visual variant of the list. `default` draws no outer frame, divider lines * only — the container around it owns the surface. * @default 'default' */ variant?: 'default' | (string & {}); /** * Size token applied to the list. */ size?: string; /** * Content to render when the list is empty. */ emptyState?: ReactNode; /** * Whether rows can be selected, and how many at a time. Selection is view * state: read it with `onSelectionChange` and commit it yourself. For a * selection that submits with a form, use `SelectList` instead. * @default 'none' */ selectionMode?: SelectionMode; /** * Whether to show a select-all checkbox above the rows, with a count of what * is selected. Has no effect unless `selectionMode="multiple"`. * @default false */ allowSelectAll?: boolean; /** Ref to the DOM element the component renders. */ ref?: Ref; } interface ListViewComponent { (props: ListViewProps): ReactNode; Item: typeof ListViewItem; } declare const ListViewExported: ListViewComponent; export { ListViewExported as ListView };