import type { PlatformCapabilities } from '../../../client-api-platform/src/shapes'; import { Locale } from '../../../client-api-platform/src/shapes'; export declare function getLanguage(): Locale; export declare const dispatchLanguageToBrowserWindows: (language: Locale) => Promise; export declare const setLanguage: (locale: Locale) => Promise; export declare function getLanguageResourcesInternal(): { currentLanguage: string; resources: import("i18next").Resource; }; /** * This API returns what functionality is supported by the platform. * This is useful when Home/Dock/NC is of a higher version * and may depend on functionality that is not available * in the current Workspace Platform version. * @internal */ export declare function getCapabilitiesInternal(): PlatformCapabilities; /** * initLanguage() * @param language - optional - ISO language code. Built-in languages are always accepted. * Any language code defined in the external `translation-override.json` is also accepted. * @param languagePacksApiUrl - optional i18next-http-backend loadPath. When set, * HTTP language packs are used instead of the bundled locale JSON. */ export default function initLanguage(language?: Locale, languagePacksApiUrl?: string): Promise;