interface Props<Item> {
    disabled: boolean;
    items: Item[] | undefined;
    onChange: (item: Item) => void;
}
/**
 * Automatically selects the only item on the list.
 * Does nothing if there's 0 items or more than 1.
 *
 * @returns true when there's only 1 item.
 */
export declare const useAutoSelectOnlyItem: <Item>({ disabled, items, onChange, }: Props<Item>) => boolean;
export {};
