/** * react-fetch v1.49.0 * * Copyright (c) resourge. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import { type FetchError, type HttpResponseError } from '@resourge/http-service'; export type State = { data: T; error: UseFetchError; isLoading: boolean; }; export type UseFetchError = any | Error | FetchError | HttpResponseError | null; declare const NotificationService: { finishRequest(id: string): void; notifyAll(): void; notifyById(id: string): void; startRequest(id: string): void; subscribe(id: string): (notification: () => void) => () => void; }; export default NotificationService;