export declare function cacheGet(key: string): unknown | undefined;
export declare function cacheSet(key: string, data: unknown, ttlMs?: number): void;
export declare function cacheClear(pattern?: string): void;
export declare function getCacheStats(): {
    size: number;
    hits: number;
    misses: number;
    hitRate: string;
};
export declare function cachedQuery<T>(cacheKey: string, sql: string, params?: unknown[], ttlMs?: number): T;
export declare function cachedGet<T>(cacheKey: string, sql: string, params?: unknown[], ttlMs?: number): T | undefined;
export declare function invalidateOnWrite(patterns: string[]): void;
//# sourceMappingURL=query-cache.d.ts.map