2023-03-04 04:25:07 +03:00
|
|
|
import { Wordlist } from "./wordlist.js";
|
|
|
|
/**
|
|
|
|
* An OWL format Wordlist is an encoding method that exploits
|
|
|
|
* the general locality of alphabetically sorted words to
|
|
|
|
* achieve a simple but effective means of compression.
|
|
|
|
*
|
|
|
|
* This class is generally not useful to most developers as
|
|
|
|
* it is used mainly internally to keep Wordlists for languages
|
|
|
|
* based on ASCII-7 small.
|
|
|
|
*
|
|
|
|
* If necessary, there are tools within the ``generation/`` folder
|
2023-06-02 00:52:58 +03:00
|
|
|
* to create the necessary data.
|
2023-03-04 04:25:07 +03:00
|
|
|
*/
|
|
|
|
export declare class WordlistOwl extends Wordlist {
|
|
|
|
#private;
|
|
|
|
/**
|
|
|
|
* Creates a new Wordlist for %%locale%% using the OWL %%data%%
|
|
|
|
* and validated against the %%checksum%%.
|
|
|
|
*/
|
|
|
|
constructor(locale: string, data: string, checksum: string);
|
2023-06-02 00:52:58 +03:00
|
|
|
/**
|
|
|
|
* The OWL-encoded data.
|
|
|
|
*/
|
2023-03-04 04:25:07 +03:00
|
|
|
get _data(): string;
|
2023-06-02 00:52:58 +03:00
|
|
|
/**
|
|
|
|
* Decode all the words for the wordlist.
|
|
|
|
*/
|
2023-03-04 04:25:07 +03:00
|
|
|
_decodeWords(): Array<string>;
|
|
|
|
getWord(index: number): string;
|
|
|
|
getWordIndex(word: string): number;
|
|
|
|
}
|
2023-04-27 15:19:55 +03:00
|
|
|
//# sourceMappingURL=wordlist-owl.d.ts.map
|