import { Fetcher, Key, SWRConfiguration } from 'swr'; export type SWROptions = SWRConfiguration>; export interface SWRError extends Error { status?: number; } export type Only = { [P in keyof T]: T[P]; } & { [P in keyof U]?: never; }; export type Either = Only | Only;