import { ClientPlugin, RequestConfig, CachePluginConfig } from "../types";
export declare class CachePlugin implements ClientPlugin {
    name: string;
    private cache;
    private config;
    constructor(config?: CachePluginConfig);
    beforeRequest(config: RequestConfig): RequestConfig;
    afterRequest(response: any, config: RequestConfig): any;
    private getCacheKey;
    private shouldCache;
}
