import type { EndpointInterface, Denormalize, Schema, FetchFunction, DenormalizeNullable, ResolveType } from '@data-client/core'; import { type DeepReadonly, type ComputedRef } from 'vue'; import type { MaybeRefsOrGetters, MaybeRefsOrGettersNullable } from '../types.js'; /** * Ensure an endpoint is available. * Suspends until it is. * * @see https://dataclient.io/docs/api/useSuspense * @throws {Promise} If data is not yet available. * @throws {NetworkError} If fetch fails. */ export default function useSuspense>(endpoint: E, ...args: MaybeRefsOrGetters>): Promise : Denormalize>>>; export default function useSuspense>(endpoint: E, ...args: MaybeRefsOrGettersNullable> | readonly [null]): Promise | undefined : DenormalizeNullable>>>; //# sourceMappingURL=useSuspense.d.ts.map