UNPKG

@ai-growth/nextjs

Version:

Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering

17 lines 590 B
import React from 'react'; import { CacheManager, CacheConfig, CacheMetrics } from '../utils/cache-manager'; export interface CacheContextValue { cacheManager: CacheManager; metrics: CacheMetrics; enabled: boolean; refreshMetrics: () => void; clearCache: () => Promise<void>; } export interface CacheProviderProps { config?: Partial<CacheConfig>; enabled?: boolean; children: React.ReactNode; } export declare const CacheProvider: React.FC<CacheProviderProps>; export declare function useCache(): CacheContextValue; //# sourceMappingURL=CacheContext.d.ts.map