import type { ReactNode } from 'react'; import { type ListLayoutChoice } from './ListViewControls.js'; import { type ListCountProps, type ListSearch } from './listSearch.js'; import type { ListView } from './listView.js'; export interface ListToolbarProps { /** What the count says: how many there are and, while a search or filter * is on, how many match. `filterActive` defaults to whether the search or * the view's filters narrow the list. As a `ListPage`'s `toolbar`, the * page shows it under the last row, as its own `count` would; anywhere * else, it leads the toolbar. */ count?: { total: number; matches: number; filterActive?: boolean | undefined; noun: string; nounPlural: string; }; /** Adds its filter menu, when it has facets, and its display options. */ view?: ListView | undefined; /** The layouts the list switches between, at the top of its display options. */ layout?: ListLayoutChoice | undefined; search?: ListSearch | undefined; /** Names the search for assistive technology; the strings' "Search" by default. */ searchLabel?: string | undefined; /** The search field's placeholder; the label by default. */ searchPlaceholder?: string | undefined; /** After the search, such as a control that acts on the whole list. A list * page's "+ Add" belongs in its `PageHeader`. */ action?: ReactNode; /** More controls, before the filter and display menus. */ children?: ReactNode; } /** The count a `ListToolbar` was given, as a `ListPage` shows it under its rows. */ export declare function toolbarCount({ count, view, search, }: ListToolbarProps): ListCountProps | undefined; /** A list page's toolbar in the shared order, at its end: the page's own * controls, the filter menu, the display options, the search and an action. * Give it to `ListPage` as its `toolbar`; the list's count goes under its * rows (see `ListPage`'s `count`), and while filter chips show, the toolbar * sits at the end of their first line. */ export declare function ListToolbar(props: ListToolbarProps): import("react").JSX.Element;