import type { EndpointInterface, DenormalizeNullable, Schema, FetchFunction, ResolveType } from '@data-client/core'; import { type ComputedRef } from 'vue'; import type { MaybeRefsOrGetters, MaybeRefsOrGettersNullable } from '../types.js'; /** * Read an Endpoint's response if it is ready. * * `useCache` is globally memoized. * @see https://dataclient.io/docs/api/useCache */ export default function useCache, 'key' | 'schema' | 'invalidIfStale'>>(endpoint: E, ...args: MaybeRefsOrGetters>): ComputedRef any ? ResolveType | undefined : any : DenormalizeNullable>; export default function useCache, 'key' | 'schema' | 'invalidIfStale'>>(endpoint: E, ...args: MaybeRefsOrGettersNullable> | readonly [null]): ComputedRef any ? ResolveType | undefined : any : DenormalizeNullable>; //# sourceMappingURL=useCache.d.ts.map