/** * Environment variable that disables external template cache reads and writes. * * Set to `0`, `false`, `no`, or `off` to bypass the cache. */ export declare const EXTERNAL_TEMPLATE_CACHE_ENV = "WP_TYPIA_EXTERNAL_TEMPLATE_CACHE"; /** * Environment variable that overrides the external template cache root. */ export declare const EXTERNAL_TEMPLATE_CACHE_DIR_ENV = "WP_TYPIA_EXTERNAL_TEMPLATE_CACHE_DIR"; /** * Environment variable that enables TTL-based external template cache pruning. * * Unset, empty, zero, negative, and non-numeric values keep pruning disabled. */ export declare const EXTERNAL_TEMPLATE_CACHE_TTL_DAYS_ENV = "WP_TYPIA_EXTERNAL_TEMPLATE_CACHE_TTL_DAYS"; /** * Environment variable that overrides how often TTL pruning may scan the cache. * * Unset values use the default interval. Zero, negative, and non-numeric values * disable scan throttling. */ export declare const EXTERNAL_TEMPLATE_CACHE_PRUNE_INTERVAL_MS_ENV = "WP_TYPIA_EXTERNAL_TEMPLATE_CACHE_PRUNE_INTERVAL_MS"; /** * Checks whether remote external template source caching is enabled. * * Caching is enabled by default. Set `WP_TYPIA_EXTERNAL_TEMPLATE_CACHE` to * `0`, `false`, `no`, or `off` to force uncached resolution. * * @param env Environment object to inspect, defaulting to `process.env`. * @returns Whether external template source cache reads and writes are enabled. */ export declare function isExternalTemplateCacheEnabled(env?: NodeJS.ProcessEnv): boolean; /** * Resolves the external template source cache root directory. * * `WP_TYPIA_EXTERNAL_TEMPLATE_CACHE_DIR` overrides the location. Without an * override, wp-typia uses a per-user `wp-typia-template-source-cache-*` * directory inside the operating system temp directory. * * @param env Environment object to inspect, defaulting to `process.env`. * @returns Absolute cache root directory path. */ export declare function getExternalTemplateCacheRoot(env?: NodeJS.ProcessEnv): string; export declare function resolveExternalTemplateCacheTtlMs(options?: { env?: NodeJS.ProcessEnv; ttlDays?: number; }): number | null; export declare function resolveExternalTemplateCachePruneIntervalMs(options?: { env?: NodeJS.ProcessEnv; pruneIntervalMs?: number; }): number | null; export declare function getExternalTemplateCacheNowMs(now: Date | number | undefined): number;