UNPKG

@stacksjs/dtsx

Version:

A modern, fast .d.ts generation tool, powered by Bun.

19 lines (18 loc) 662 B
/** * Get or create a cached RegExp for word boundary matching. * Promotes the entry on a hit so the FIFO eviction approximates LRU. */ export declare function getCachedRegex(pattern: string): RegExp; /** * Get cached import items or null if not cached. * Promotes on hit for LRU-like semantics. */ export declare function getImportItemsFromCache(importText: string): string[] | null; /** * Store import items in cache with eviction */ export declare function setImportItemsCache(importText: string, items: string[]): void; /** * Clear processor caches (useful for testing or memory management) */ export declare function clearProcessorCaches(): void;