import type { CSSProperties, ElementType, HTMLAttributes, ReactNode, MouseEventHandler } from 'react';
import type { SxProp } from '../Layout/sx.js';
export type ListVariant = 'plain' | 'bordered' | 'dividers';
export type ListSize = 'sm' | 'md' | 'lg';
export interface ListProps extends HTMLAttributes {
/** Visual style. Default: `dividers`. */
variant?: ListVariant;
/** Row size. Default: `md`. */
size?: ListSize;
/** Use this when items have explicit dividers via `` to
* disable automatic divider rendering. */
dense?: boolean;
/** Replace the items with skeleton rows and mark the list `aria-busy`. */
loading?: boolean;
/**
* Windowing for long lists: only the rows in (and just around) the scrollport are in the
* DOM. `'auto'` (default) turns it on above 200 rows when the list is height-bounded
* (give it a `height` / `maxHeight`; it becomes the scroll container). Rows get a fixed
* `itemHeight`. `true` forces it on, `false` off.
*/
virtualize?: boolean | 'auto';
/** Row height in px when windowed. Defaults to 64 / 55 / 74 for `md` / `sm` / `lg` two-line rows. */
itemHeight?: number;
/** Number of skeleton rows while `loading`. Default 3. */
loadingRows?: number;
/** Shown in place of the items when there are none (and not `loading`). */
empty?: ReactNode;
/**
* One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a
* responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx
* merges into inline style; responsive sx injects a scoped class.
*/
sx?: SxProp;
}
export declare const List: import("react").ForwardRefExoticComponent>;
export interface ListItemProps {
/** Leading icon or avatar. */
leading?: ReactNode;
/** Trailing actions (button, chip, badge). */
trailing?: ReactNode;
/** Primary text — bold/regular depending on variant. */
primary?: ReactNode;
/** Secondary text — muted, single-line by default. */
secondary?: ReactNode;
/** Whole-row click handler. Becomes role=button. */
onClick?: MouseEventHandler;
/** Render the row as a link by passing an `href`. */
href?: string;
/** Disable interactivity + visual. */
disabled?: boolean;
/** Render as currently-active row. */
active?: boolean;
/** Override the rendered element (default: `li`, `a` if href, `button` if onClick). */
as?: ElementType;
/** Accessible name override (when `primary` isn't a string). */
'aria-label'?: string;
/** Free-form children — overrides the leading/primary/secondary/trailing slots. */
children?: ReactNode;
/** Extra className. */
className?: string;
/** Inline style for the row element. */
style?: CSSProperties;
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
/** Tab order override. `List` manages this itself (roving tabindex). */
tabIndex?: number;
}
export declare const ListItem: import("react").ForwardRefExoticComponent>;
export interface ListSeparatorProps extends HTMLAttributes {
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const ListSeparator: import("react").ForwardRefExoticComponent>;
export interface ListSubheaderProps extends HTMLAttributes {
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const ListSubheader: import("react").ForwardRefExoticComponent>;