import type { CallInterceptor } from './call-interceptor.js'; import type { CallPlugin } from './plugin.js'; export type CachePluginOptions = { ttl: number; key?: (ctx: { path: string[]; input: unknown; }) => string | undefined; store?: { get(key: string): { value: unknown; expires: number; } | undefined; set(key: string, entry: { value: unknown; expires: number; }): void; delete?(key: string): void; }; }; export declare class CachePlugin implements CallPlugin { readonly name = "cache"; readonly intercept: CallInterceptor; private readonly ttl; private readonly keyFn; private readonly store; constructor(options: CachePluginOptions); private interceptCall; private resolveKey; } //# sourceMappingURL=cache-plugin.d.ts.map