Middleware: (
    useSWRNext: SWRHook,
) => <Data = any, Error = any>(
    key: Key,
    fetcher: BareFetcher<Data> | null,
    config: SWRConfiguration<Data, Error, BareFetcher<Data>>,
) => SWRResponse<Data, Error>

Type declaration