import { apiRequestGet } from 'flavours/glitch/api'; import type { ApiSearchType, ApiSearchResultsJSON, } from 'flavours/glitch/api_types/search'; export const apiGetSearch = ( params: { q: string; resolve?: boolean; type?: ApiSearchType; limit?: number; offset?: number; }, options: { signal?: AbortSignal; } = {}, ) => apiRequestGet( 'v2/search', { ...params, }, options, );