import { InjectionKey, Ref } from 'vue';
import { SWRConfig } from '../types';
/**
 * Key for provide and get current context configs
 * @internal
 */
export declare const globalConfigKey: InjectionKey<Readonly<Ref<{
    readonly cacheProvider: {
        readonly entries: () => IterableIterator<[string, import('../types').CacheState]>;
        readonly keys: () => IterableIterator<string>;
        readonly has: (key: import('../types').Key) => boolean;
        readonly get: (key: import('../types').Key) => import('../types').CacheState | undefined;
        readonly set: (key: import('../types').Key, value: import('../types').DeepMaybeRef<import('../types').CacheState>) => void;
        readonly delete: (key: import('../types').Key) => void;
        readonly clear: () => void;
    };
    readonly revalidateOnFocus: boolean;
    readonly revalidateOnReconnect: boolean;
    readonly revalidateIfStale: boolean;
    readonly dedupingInterval: number;
    readonly refreshInterval: number;
    readonly refreshWhenHidden: boolean;
    readonly refreshWhenOffline: boolean;
    readonly focusThrottleInterval: number;
    readonly fallback?: {
        readonly [x: string]: any;
    } | undefined;
    readonly fallbackData?: any;
    readonly onSuccess?: ((data: any, key: string, config: SWRConfig<any, any>) => void) | undefined;
    readonly onError?: ((err: any, key: string, config: SWRConfig<any, any>) => void) | undefined;
}>>>;
