import { AxiosResponse } from 'axios'; import { FetchDetailResponse } from '../types/fetchResponse.type'; import { LanguageMeta, LanguageTranslations } from '../types/i18nService.type'; declare const I18nService: { /** * Fetch all translation messages for a specific locale. * @param locale The locale code (e.g., 'en', 'id'). * @returns A promise resolving to a key-value record of messages. */ getMessages: (isoCode: string) => Promise>>; /** * Fetch all available lang options for LanguageDropdown and LanguageSwitcher * * @returns Promise Array of options */ getLanguageOptions: () => Promise; /** * Fetch single lang option meta data * * @param isoCode The locale code (e.g., 'en', 'id'). * @returns Promise LanguageMeta */ getLanguageOptionMeta: (isoCode: string) => Promise; /** * Translate a specific text to the target locale. * * @param key Unique translation key. * @param locale Target locale code. */ translateText: (key: string, locale: string) => Promise; }; export default I18nService;