/** Pass `enabled: false` to suspend the global ⌘F/`/` hijack (e.g. when search isn't shown and browser Find should stay active). * `/` is off too while UIProvider's `characterKeyShortcuts` is. */ export declare function useListSearch(enabled?: boolean, storageKey?: string): { filter: string; setFilter: import("react").Dispatch>; searchOpen: boolean; openSearch: () => void; closeSearch: () => void; clearSearch: () => void; terms: string[]; addTerm: (term: string) => void; removeTerm: (term: string) => void; queries: string[]; inputRef: import("react").RefObject; }; export type ListSearch = ReturnType; export declare function ListSearchControl({ search, placeholder, label: labelProp, fill, }: { search: ListSearch; placeholder: string; label?: string | undefined; /** On a phone, the open field takes the rest of its line rather than keep a desktop's width: * for a search on a line of its own, such as a list's toolbar. In a page header's actions it * has no effect, as the bar decides there. */ fill?: boolean | undefined; }): import("react").JSX.Element; /** What a list's count needs: how many there are, how many a search or filter leaves, and the * noun in both numbers. */ export interface ListCountProps { total: number; matches: number; filterActive: boolean; noun: string; nounPlural: string; } /** True inside a `ListPage` that shows its count under its rows, so a count placed in its toolbar * by hand gives way rather than showing twice. */ export declare const ListFooterCountContext: import("react").Context; /** True where a toolbar shares a line with the list's filter chips, at its end: a `ListToolbar` * there drops its own row's height and padding. */ export declare const ListToolbarInlineContext: import("react").Context; /** The count's words, "7 tokens" or "2 of 7 tokens", as a status so a screen reader hears the * count change as a filter narrows it. */ export declare function ListCountText(props: ListCountProps): import("react").JSX.Element; /** A list's count as a status that can say nothing yet: kept mounted while its text is empty, so * a screen reader hears the count when it arrives, as it would not from a status that mounts * with its text already in. */ export declare function ListCountStatus({ count, className, }: { count: ListCountProps | undefined; className?: string | undefined; }): import("react").JSX.Element; /** A list's count, placed by hand. * @deprecated Give `ListPage` a `count` instead (with its `total` and `matches`): it shows the * count under the last row, beside a `pager`, and hides it while the list shows its empty or * no-matches state. Inside a `ListPage` that shows its own count, this renders nothing. */ export declare function ListCount(props: ListCountProps): import("react").JSX.Element;