UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

13 lines (12 loc) 527 B
import { type Trie } from '@kamilmielnik/trie'; import { type Locale } from '@scrabble-solver/types'; import type { Cache } from '../types'; export declare class LayeredCache implements Cache<Locale, Trie> { private readonly layers; get(locale: Locale): Promise<Trie | undefined>; getLastModifiedTimestamp(locale: Locale): number | undefined; has(locale: Locale): boolean; isStale(locale: Locale): boolean | undefined; set(locale: Locale, trie: Trie): Promise<void>; private getLastModifiedLayer; }