import type { KemonoConfig } from '../types/config';
import type { Logger } from './logger';
/**
 * Cache interface for consistent caching across the package
 */
export interface Cache {
    get(key: string): Promise<string | null>;
    set(key: string, value: string, ttl?: number): Promise<void>;
    del(key: string): Promise<void>;
}
/**
 * Creates a cache instance based on the configuration
 * @param config Cache configuration from KemonoConfig
 * @param logger Logger instance
 * @returns Cache instance
 */
export declare function createCache(config: KemonoConfig['cache'], logger: Logger): Cache;
