scrabble-solver
Version:
Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.
11 lines (10 loc) • 446 B
TypeScript
import { Trie } from '@kamilmielnik/trie';
import { Locale } from '@scrabble-solver/types';
import { Cache } from '../types';
export declare class DiskCache implements Cache<Locale, Trie> {
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>;
}