import { DictionaryIndexType } from '../types/yomitan/dictionaryindex'; export declare class DictionaryIndex { index: DictionaryIndexType; constructor(_index?: DictionaryIndexType); setTitle(title: string): this; setRevision(revision: string): this; setFormat(format: DictionaryIndexType['format']): this; setAuthor(author: string): this; setIsUpdatable(isUpdatable: boolean): this; setIndexUrl(indexUrl: string): this; setDownloadUrl(downloadUrl: string): this; setDescription(description: string): this; setAttribution(attribution: string): this; setUrl(url: string): this; setSequenced(sequenced: boolean): this; setFrequencyMode(mode: DictionaryIndexType['frequencyMode']): this; setSourceLanguage(sourceLanguage: DictionaryIndexType['sourceLanguage']): this; setTargetLanguage(targetLanguage: DictionaryIndexType['targetLanguage']): this; build(): DictionaryIndexType; /** * Exports the dictionary index to a JSON file (useful for auto updating dictionaries) * @param directory - The directory to export the dictionary to */ export(directory?: string, fileName?: string): Promise; }