UNPKG

logsdx

Version:

<div align="center"><img alt="logsdx" width="300" src="https://github.com/user-attachments/assets/cc2a3b55-5bfd-44e8-a330-bfa146b50059" /></div>

16 lines (15 loc) 454 B
import type { Theme } from "../types"; import { SimpleLexer } from "./index"; import type { CacheOptions } from "./cache-types"; declare class TokenizerCache { private cache; private hashTheme; private simpleHash; getLexer(theme: Theme | undefined, options?: CacheOptions): SimpleLexer; private createLexer; private cleanup; clear(): void; size(): number; } export declare const tokenizerCache: TokenizerCache; export {};