/** * Cache interface for skill scripts. */ export interface ICache { /** * Write a result to cache. * @param data - Data to cache */ write(data: Record): void; /** * Read the last cached entry as fallback. * @returns Last cached entry or null if not available */ readFallback(): Record | null; } /** * Configuration for creating a cache instance. */ export interface ICacheConfig { /** Directory containing the cache file */ cacheDir: string; /** Cache filename (e.g., 'tasks.log', 'memory.log') */ filename: string; } /** * Creates a file-based cache instance. * * @param config - Cache configuration * @returns Cache instance */ export declare function createCache(config: ICacheConfig): ICache; /** * Creates a cache config for a skill script. * Cache files are stored in the skill's cache/ directory. * * @param scriptDir - __dirname of the script (e.g., tasks/scripts/) * @param filename - Cache filename (e.g., 'tasks.log') * @returns Cache configuration */ export declare function createCacheConfig(scriptDir: string, filename: string): ICacheConfig; /** * No-op cache implementation for when caching is disabled. */ export declare const nullCache: ICache; //# sourceMappingURL=cache.d.ts.map