UNPKG

@henteko/kumiki

Version:

A video generation tool that creates videos from JSON configurations

32 lines 971 B
import { Voice } from '../types/index.js'; export interface CacheKey { text: string; voice?: Voice; } export declare class NarrationCacheService { private cacheDir; private initialized; constructor(cacheDir?: string); initialize(): Promise<void>; ensureCacheDir(): Promise<void>; generateCacheKey(key: CacheKey): string; getCachePath(key: CacheKey): string; exists(key: CacheKey): Promise<boolean>; get(key: CacheKey): Promise<string | null>; set(key: CacheKey, audioPath: string): Promise<string>; clear(options?: { olderThan?: number; }): Promise<number>; getStats(): Promise<{ totalFiles: number; totalSize: number; }>; getStatus(): Promise<{ totalFiles: number; totalSize: number; oldestEntry?: Date; newestEntry?: Date; }>; } export declare const narrationCacheService: NarrationCacheService; //# sourceMappingURL=narration-cache.d.ts.map