import React, { ChangeEvent } from 'react'; import * as MUI from '@material-ui/core'; import { OmitBannedProps } from '@monorail/v2/shared/helpers'; export declare const StyledOutlinedInput: import("styled-components").StyledComponent; declare type ClearableSearchFieldProps = Pick & { /** * Callback when clear button is clicked */ onClear: () => void; }; export declare const useClearableSearchField: (props: ClearableSearchFieldProps) => { searchFieldProps: { inputRef: React.RefObject; value: string; onChange: (e: ChangeEvent) => void; endAdornment: JSX.Element; }; }; declare type SearchFieldMonorailProps = { value?: string; inputRef?: React.RefObject; }; export declare type SearchFieldProps = SearchFieldMonorailProps & OmitBannedProps>; /** * Basic input styled as a search field */ export declare function SearchField(props: SearchFieldProps): JSX.Element; /** * `SearchField` composed with `useClearableSearch` * * TODO: If we don't like separate `SearchField` and `SearchFieldClearable`, we can change it to * `` and create a `SearchFieldBase`. */ export declare function SearchFieldClearable(props: ClearableSearchFieldProps & SearchFieldProps): JSX.Element; export {};