import type { Middleware, IRPC } from '../types';
export interface ICache {
    get(k: string): Promise<unknown>;
    set(k: string, v: unknown, ttl?: number | string): Promise<void>;
}
export declare function callToKey({ method, params }: IRPC.Call<unknown>): string;
export declare function cacheMiddleware(cache: ICache, ttl?: number | string): Middleware<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
//# sourceMappingURL=cache.d.ts.map