// 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; add(word: string): void; remove(word: string): void; close(): void; } export declare function discoverSystemDictionaries(): Array; export declare function hashFile(path: string): Promise; export declare const loadError: Error | null;