import React from 'react'; import { ChannelOrUserResponse } from './utils'; import type { DefaultStreamChatGenerics } from '../../types/types'; export declare type SearchResultsHeaderProps = Pick, 'results'>; export declare type SearchResultsListProps = Pick, 'results' | 'SearchResultItem' | 'selectResult'> & { focusedUser?: number; }; export declare type SearchResultItemProps = Pick, 'selectResult'> & { index: number; result: ChannelOrUserResponse; focusedUser?: number; }; export declare type SearchResultsController = { results: Array> | []; searching: boolean; selectResult: (result: ChannelOrUserResponse) => Promise | void; }; export declare type AdditionalSearchResultsProps = { /** Display search results as an absolutely positioned popup, defaults to false and shows inline */ popupResults?: boolean; /** Custom UI component to display empty search results */ SearchEmpty?: React.ComponentType; /** Custom UI component to display the search loading state */ SearchLoading?: React.ComponentType; /** Custom UI component to display a search result list item, defaults to and accepts the same props as: [DefaultSearchResultItem](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ChannelSearch/SearchResults.tsx) */ SearchResultItem?: React.ComponentType>; /** Custom UI component to display the search results header */ SearchResultsHeader?: React.ComponentType; /** Custom UI component to display all the search results, defaults to and accepts the same props as: [DefaultSearchResultsList](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ChannelSearch/SearchResults.tsx) */ SearchResultsList?: React.ComponentType>; }; export declare type SearchResultsProps = AdditionalSearchResultsProps & SearchResultsController; export declare const SearchResults: (props: SearchResultsProps) => JSX.Element; //# sourceMappingURL=SearchResults.d.ts.map