UNPKG

@nuxtjs/sanity

Version:
21 lines (20 loc) 750 B
import type { ClientConfig, QueryParams, SanityClient } from '../../client.js'; import type { SanityLiveStore } from '../../types.js'; /** * Internal composable to handle re-execution of queries based on incoming tags * @internal */ export declare const useSanityTagRevalidation: ({ client, queryKey, liveStore, }: { client: SanityClient; queryKey: string; liveStore: SanityLiveStore | undefined; }) => { fetchTags: (query: string, params: QueryParams | undefined, options: { cacheMode: "noStale" | undefined; filterResponse: false; perspective: ClientConfig["perspective"]; useCdn: boolean; }) => Promise<void>; getLastLiveEventId: () => string | undefined; unsubscribe: () => void; };