import { StandardTextFieldProps, SvgIconProps } from '@mui/material'; import React, { ComponentType } from 'react'; export type SearchProps = Omit & { /** * Defines whether the input is disabled or not */ disableInput?: boolean; /** * Defines the time (ms) of debounce for the onChange effect * When debounce is 0, Search uses useDeferredValue instead. * * @see useDeferedValue * @default 0 */ debounce?: number; /** * Click handler for the cancel button */ onCancel?: () => void; /** * Click handler for the search button * * @param value the current value of search input */ onSearch?: (value: string) => void | boolean; /** * Function that will bed called on every change of value, can be debounced by debounce value * If debounce is set to 0, the onChange is being called when deferred value changes * * @see debounce * * @param value current value of searchbar */ onChange?: (value: string) => void; /** * Defines which variant of Searchbar component should be rendered * @default solid */ variant?: 'solid' | 'transparent' | 'mapShadow'; /** * Defines default value in the initial render * If set along with `value` property the `defaultValue` field takes precedence * * @see value */ defaultValue?: string; /** * Overrides TextField value property so it can be string only * If set along with `defaultValue` property the `defaultValue` field takes precedence * * @see defaultValue */ value?: string; /** * Properties passed to the search icon */ searchIconProps?: SvgIconProps; /** * Node for search icon */ SearchIconComponent?: ComponentType; /** * Properties passed to the cancel icon */ cancelIconProps?: SvgIconProps; /** * Node for search icon */ CancelIconComponent?: ComponentType; }; export declare const Search: React.FC;