import React from 'react'; import { AppIcon } from '@codeleap/styles'; import { TextInputProps } from '../TextInput'; /** * `onSearchChange` fires after the debounce delay (default 500 ms), while `onValueChange` * fires on every keystroke — use `onTypingChange` to show a loading indicator between the two. * If `debounce` is `undefined` (not 0), `onSearchChange` fires synchronously with no timer. */ export type SearchInputProps = { onTypingChange?: (isTyping: boolean) => void; onSearchChange: (search: string) => void; onValueChange?: (search: string) => void; onClear?: () => void; showClear?: (search: string) => boolean; debugName: string; debounce?: number; clearIcon?: AppIcon; searchIcon?: AppIcon; placeholder?: string; } & Partial; type Component = React.ForwardRefExoticComponent & { defaultProps?: Partial; }; export declare const SearchInput: Component; export {}; //# sourceMappingURL=index.d.ts.map