export type SubscribeFn = (fn: (value: T) => void) => () => void; export type NotifyFn = (value: T) => void; /** * A hook for subscribing to a value. * @example * const { subscribe, notify } = useSubscribe(); * subscribe((value) => console.log(value)); * notify(1); * * @returns `subscribe` and `notify` functions. */ export declare function useSubscribe(): [SubscribeFn, NotifyFn];