import { QueryKey, QueryKeyHash } from '@cubejs-backend/base-driver'; import { CacheKey, LocalRefreshKeyDescriptor } from './QueryCache'; /** * Unique process ID regexp. */ export declare const processUidRE: RegExp; /** * Returns query hash by specified `queryKey`. */ export declare function getCacheHash(queryKey: QueryKey | CacheKey, processUid?: string): QueryKeyHash; /** * `nowMs` is not floored to whole seconds first: for an integer `interval >= 1` the * fractional part cannot cross a boundary, which is also why the fractional seconds of * `EXTRACT(EPOCH FROM NOW())` never mattered on the SQL path. * * The key is a string because `contentVersion` and the query cache `renewalKey` hash it * through `JSON.stringify`: `2980310` and `"2980310"` are different keys, so a number here * would rebuild every pre-aggregation the first time the flag is switched on. A string is * also what the SQL path yields — an `every` key runs against Cube Store whenever an * external store is configured, and Cube Store carries every column as a string. */ export declare function evaluateLocalRefreshKey(descriptor: LocalRefreshKeyDescriptor, nowMs?: number): [{ refresh_key: string; }]; export declare function isValidLocalRefreshKey(descriptor?: LocalRefreshKeyDescriptor): descriptor is LocalRefreshKeyDescriptor; //# sourceMappingURL=utils.d.ts.map