import { KeyedMutator } from 'swr'; import type { FetchHookOptions, HookResponse } from './types'; import { FetchResponse, PageInfo, TaxonomyArchiveParams, TaxonomyTermsStrategy, TermEntity } from '../../data'; export interface useTermsResponse extends HookResponse { data: { terms: T[]; pageInfo: PageInfo; }; mutate: KeyedMutator>; } /** * The useFetchTerms hook. Returns a collection of term entities * * See {@link useTerms} 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 useFetchTerms(params: P | {}, options?: FetchHookOptions>, path?: string): useTermsResponse; /** * @internal */ export declare namespace useFetchTerms { const fetcher: (sourceUrl?: string, defaultParams?: P) => TaxonomyTermsStrategy; }