import { KeyedMutator } from 'swr'; import type { FetchHookOptions, HookResponse } from './types'; import { FetchResponse, PageInfo, PostSearchEntity, TermSearchEntity, SearchParams, QueriedObject, SearchNativeFetchStrategy } from '../../data'; export interface useSearchNativeResponse extends HookResponse { data: { searchResults: T[]; pageInfo: PageInfo; queriedObject: QueriedObject; }; mutate: KeyedMutator>; } /** * The useFetchSearchNative hook. Returns a collection of search entities retrieved through the WP native search endpoint * * See {@link useSearchNative} for usage instructions. * * @param params The list of params to pass to the fetch strategy. It overrides the ones in the URL. * @param options The options to pass to the swr hook. * @param path The path of the url to get url params from. * * @category Data Fetching Hooks */ export declare function useFetchSearchNative(params?: P | {}, options?: FetchHookOptions>, path?: string): useSearchNativeResponse; /** * @internal */ export declare namespace useFetchSearchNative { const fetcher: (sourceUrl?: string, defaultParams?: P) => SearchNativeFetchStrategy; }