import type { EndpointInterface, Schema, FetchFunction } from '@data-client/core'; import type { MaybeRefsOrGettersNullable } from '../types.js'; /** * Keeps a resource fresh by subscribing to updates. * Mirrors React hook API. Pass `null` as first arg to unsubscribe. * @see https://dataclient.io/docs/api/useSubscription */ export default function useSubscription>(endpoint: E, ...args: MaybeRefsOrGettersNullable> | readonly [null]): void; //# sourceMappingURL=useSubscription.d.ts.map