import type { ComponentProps, DispatchWithoutAction, ReactNode } from 'react'; import type { Popup } from '../Popup'; import type { TextInput } from '../TextInput'; import type { KeyGroup } from './KeyGroup'; type ChildrenProps = { searchTerms: string; isOpen: boolean; toggleIsOpen: DispatchWithoutAction; }; export type SearchBarChildrenFunctionProps = ({ searchTerms, isOpen, toggleIsOpen }: ChildrenProps) => ReactNode; export type SearchInputProps = { popupPlacement?: Exclude['placement'], 'nested-menu'>; threshold?: number; children?: SearchBarChildrenFunctionProps | ReactNode; onSearch: (value: string) => void; onClose?: () => void; ['data-testid']?: string; /** * If set to true images will be shown with key shortcut to focus the input on the right of the search bar. * If set to an array of strings, the strings will be used as the key shortcuts. */ shortcut?: boolean | ComponentProps['keys']; className?: string; } & Omit, 'prefix' | 'suffix' | 'clearable' | 'success' | 'onRandomize' | 'onChange' | 'type' | 'onChangeValue' | 'helper'>; export {}; //# sourceMappingURL=types.d.ts.map