@launchmenu/applet-dictionary
Version:
An applet to find dictionary definitions
29 lines • 1.35 kB
TypeScript
import { IDataHook } from "model-react";
import { WikiPage } from "../wiki/WikiPage";
import { WikiSection } from "../wiki/WikiSection";
import { IWikiSection } from "../wiki/_types/IWikiHierarchicalStructure";
import { WiktionaryLanguage } from "./WiktionaryLanguage";
export declare class WiktionaryPage extends WikiPage<WiktionaryLanguage> {
/** @override */
protected createSection(data: IWikiSection): WiktionaryLanguage;
/**
* Creates a section using the appropriate class given the section data
* @param data The data of the section
* @returns The created section
*/
protected createDefinitionSection(data: IWikiSection): WikiSection;
/**
* Retrieves all the languages and the word's definitions in this language
* @param hook The hook to subscribe to changes
* @returns All the languages that have a definition for this word
*/
getLanguages(hook?: IDataHook): WiktionaryLanguage[];
/**
* Retrieves the definition of the word for the given language
* @param language The language to get the definition for
* @param hook The hook to subscribe to changes
* @returns The language section if it exists
*/
getLanguage(language: string, hook?: IDataHook): WiktionaryLanguage | null;
}
//# sourceMappingURL=WitkionaryPage.d.ts.map