import { PostsArchiveFetchStrategy, PostsArchiveParams } from './PostsArchiveFetchStrategy'; import { PostEntity, QueriedObject } from '../types'; import { FetchOptions } from './AbstractFetchStrategy'; /** * The SearchFetchStrategy extends the {@link PostsArchiveFetchStrategy} and does not make use of the * search endpoint. Instead it uses the specified postType endpoint. * * This strategy supports extracting endpoint params from url E.g: * - `/page/2/` maps to `{ page: 2 }` * - `/searched-term/page/2` maps to `{ search: 'searched-term', page: 2 }` * * @category Data Fetching */ export declare class SearchFetchStrategy extends PostsArchiveFetchStrategy { getDefaultEndpoint(): string; getParamsFromURL(path: string, nonUrlParams?: Partial

): Partial

; /** * The fetcher function is overridden to disable throwing if not found * * If a search request returns not found we do not want to redirect to a 404 page, * instead the user should be informed that no posts were found * * @param url The url to parse * @param params The params to build the endpoint with * @param options FetchOptions */ fetcher(url: string, params: Partial

, options?: Partial): Promise<{ queriedObject: QueriedObject; isCached?: boolean; result: T[]; pageInfo: import("../types").PageInfo; }>; }