import { PostEntity, PostsArchiveParams, FetchResponse } from '@10up/headless-core'; import { FetchHookOptions } from '@10up/headless-core/react'; /** * The useSearch hook. Returns a collection of search entities * * In order to automatically map URL params create a catch-all route named `[...path].js`. * You can create the catch-all at any level e.g: `pages/search/[[...path]].js` * * The `pages/search/[[...path]].js` route for instance would yield a URL like this: `/search/[term]/page/[number]`, `/search/[term]` etc * * @param params The parameters accepted by the hook * @param options Options for the SWR configuration * * @category Data Fetching Hooks */ export declare function useSearch(params?: Partial

, options?: FetchHookOptions>): import("@10up/headless-core/react").useSearchResponse; /** * @internal */ export declare namespace useSearch { const fetcher: (sourceUrl?: string | undefined, defaultParams?: P | undefined) => import("@10up/headless-core").SearchFetchStrategy; }