import React from "react"; declare type TItem = { id: string; label: React.ReactNode; labelText?: string; disabled?: boolean; }; declare type TItemSearchable = { id: string; label: React.ReactNode; labelText: string; disabled?: boolean; }; interface DSSelectMultiplePropsBase { onChange: (selectedItemIds?: string[]) => void; selectedItemIds?: string[]; placeholder?: string; disabled?: boolean; error?: boolean; id?: string; maxSelectedItems?: number; withSearchBar?: boolean; searchBarPlaceholder?: string; /** * The item property used to group the items */ groupBy?: string; /** * Number of items to show at the top without grouping and separated from the rest */ topItems?: number; } declare type DSSelectMultipleProps = (DSSelectMultiplePropsBase & { items: TItemSearchable[]; withSearchBar: true; }) | (DSSelectMultiplePropsBase & { items: TItem[]; withSearchBar?: false; }); export declare const DSSelectMultiple: (props: DSSelectMultipleProps) => JSX.Element; export {};