mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
26 lines
505 B
TypeScript
26 lines
505 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
export interface SystemDictionary {
|
|
tag: string;
|
|
affPath: string;
|
|
dicPath: string;
|
|
}
|
|
|
|
export declare class Hunspell {
|
|
constructor(affPath: string, dicPath: string);
|
|
|
|
spell(word: string): boolean;
|
|
|
|
suggest(word: string, max?: number): Array<string>;
|
|
|
|
add(word: string): void;
|
|
|
|
remove(word: string): void;
|
|
|
|
close(): void;
|
|
}
|
|
|
|
export declare function discoverSystemDictionaries(): Array<SystemDictionary>;
|
|
|
|
export declare const loadError: Error | null;
|