import type { ReactElement } from 'react'; import type { Pagination } from './types'; export type SearchFunction = (keyword: string, pagination: Pagination, params: Record) => Promise<{ rows: T[]; total: number; }>; export interface SearchProps { prefixCls?: string; api: SearchFunction; visible?: boolean; initialSearch?: boolean; placeholder?: string; } declare const Search: (props: SearchProps) => ReactElement> | null; export default Search;