import { UiFilter } from '@ui/filter';
import { Observable } from 'rxjs';
import { SearchStateSearchResult } from './search-state-search-result';

export interface SearchStateSearchService<T = any> {
  search(
    filter: UiFilter,
    options: { skip: number }
  ): Promise<SearchStateSearchResult<T>> | Observable<SearchStateSearchResult<T>> | SearchStateSearchResult<T>;
}
