///
import { UploadWithRegionOrSNPSearchBoxProps } from 'components/upload/WithSearchBox';
import { AutocompleteSuggestionFetcher } from 'components/upload/WithSearchBox/types';
import { GenomicRange } from 'utilities/types';
export interface BatchedRegionSearchProps {
getResults: (batch: U[]) => Promise;
searchTerms: U[];
onComplete: (results: T[]) => void;
onError: (e: any) => void;
batchSize?: number;
streaming?: boolean;
onBatchComplete?: (results: T[]) => void;
limit?: number;
}
export interface WrappedBatchedRegionSearchProps {
getResults: (batch: GenomicRange[]) => Promise;
onComplete: (results: T[]) => void;
onError: (e: any) => void;
batchSize?: number;
title?: string;
streaming?: boolean;
onBatchComplete?: (results: T[]) => void;
limit?: number;
example?: string | ((props: UploadWithRegionOrSNPSearchBoxProps) => JSX.Element);
searchInstructions?: React.ReactNode;
getSuggestions?: AutocompleteSuggestionFetcher;
}
export interface WrappedBatchedRegionOrSNPSearchProps {
getResults: (batch: (GenomicRange | string)[]) => Promise;
onComplete: (results: T[]) => void;
onError: (e: any) => void;
batchSize?: number;
title?: string;
streaming?: boolean;
onBatchComplete?: (results: T[]) => void;
limit?: number;
example?: string | ((props: UploadWithRegionOrSNPSearchBoxProps) => JSX.Element);
searchInstructions?: React.ReactNode;
getSuggestions?: AutocompleteSuggestionFetcher;
}
export interface ChunkedJSONSearchProps {
getReader: (search: U[]) => Promise | null>;
getResults: (response: V[]) => T[];
getProgress: (response: V[]) => number;
delimiter: string;
searchTerms: U[];
onBatchComplete: (results: T[]) => void;
onComplete: () => void;
onError: (e: any) => void;
}