import SWRVCache from './cache'; import { IConfig, IKey, IResponse, fetcherFn } from './types'; /** * Main mutation function for receiving data from promises to change state and * set data cache */ declare const mutate: (key: string, res: Data | Promise, cache?: SWRVCache, "mutate">>, ttl?: number) => Promise<{ data: any; error: any; isValidating: any; }>; declare function useSWRV(key: IKey): IResponse; declare function useSWRV(key: IKey, fn: fetcherFn | undefined | null, config?: IConfig): IResponse; export { mutate }; export default useSWRV;