import { WorkspaceStorageProxyStore } from '../../../../client-api-platform/src/api/controllers/workspace-storage-proxy-store'; import { Locale } from '../../../../client-api-platform/src/shapes'; /** * Stores the configured and user-selected languages on the platform origin and * mirrors the effective preference into the Workspace UI origin. * * Twin of `ThemeStorageController`: `SelectedLanguage` is the user's explicit choice * (Language menu), `DefaultLanguage` is the platform's init-time configuration, and * resolution is `Selected ?? Default ?? en-US`. */ export declare class LanguageStorageController { private providerStorage; private workspaceStorageProxyStore; constructor(providerStorage: Pick, workspaceStorageProxyStore?: WorkspaceStorageProxyStore); setSelectedLanguage(locale: Locale): void; setDefaultLanguage(locale: Locale): void; getSelectedLanguage(): Locale | undefined; getDefaultLanguage(): Locale; getLanguage(): Locale; /** * Mirrors the language preference into Workspace UI storage so every UI document on * that origin can read it before first paint and react to `storage` events. */ synchronizeWorkspaceStorage: () => Promise; }