import type { EndpointInterface, Schema, FetchFunction } from '@rest-hooks/react'; import { ReadShape, ParamsFromShape } from '../endpoint/index.js'; /** * Keeps a resource fresh by subscribing to updates. * @see https://resthooks.io/docs/api/useSubscription */ export default function useSubscription | ReadShape, Args extends (E extends (...args: any) => any ? readonly [...Parameters] : readonly [ParamsFromShape]) | readonly [null]>(endpoint: E, ...args: Args): void; //# sourceMappingURL=useSubscription.d.ts.map