import * as jest_mock from 'jest-mock'; import * as node_modules_i18next from 'node_modules/i18next'; import { ITranslationService, ITranslationEvents, I18NextLoadResult, I18NextFeature, I18NextFeatureKind } from 'angular-i18next'; import * as i18next from 'i18next'; import { FormatFunction, TFunction, Callback, i18n } from 'i18next'; import * as i0 from '@angular/core'; declare class MockI18NextService implements ITranslationService { private i18next; get isInitialized(): boolean; get modules(): node_modules_i18next.Modules; get services(): node_modules_i18next.Services; get store(): node_modules_i18next.ResourceStore; get resolvedLanguage(): string | undefined; constructor(); t: jest_mock.Mock<(key: string | string[], optionsOrDefault?: string | i18next.TOptions, options?: i18next.TOptions) => i18next.TFunctionReturn>; format: FormatFunction; getFixedT(lng: string | readonly string[], ns?: string | readonly string[], keyPrefix?: string): TFunction; getFixedT(lng: null, ns: string | readonly string[] | null, keyPrefix?: string): TFunction; loadLanguages(lngs: string | readonly string[], callback?: Callback): Promise; loadResources(callback?: (err: any) => void): void; getDataByLanguage(lng: string): { translation: { [key: string]: string; }; } | undefined; reloadResources(lngs?: string | readonly string[], ns?: string | readonly string[], callback?: () => void): Promise; reloadResources(lngs: null, ns: string | readonly string[], callback?: () => void): Promise; addResource(lng: string, ns: string, key: string, value: string, options?: { keySeparator?: string | undefined; silent?: boolean | undefined; }): i18n; addResources(lng: string, ns: string, resources: any): i18n; addResourceBundle(lng: string, ns: string, resources: any, deep?: boolean, overwrite?: boolean): i18n; removeResourceBundle(lng: string, ns: string): i18n; events: ITranslationEvents; language: string; languages: string[]; get options(): any; use(plugin: any): ITranslationService; init(options?: any): Promise; changeLanguage(lng: string): Promise; loadNamespaces(namespaces: string[]): Promise; exists(key: any, options: any): boolean; setDefaultNamespace(ns: string): void; dir(lng: string): string; getResource(lng: any, ns: any, key: any, options: any): null; hasResourceBundle(lng: any, ns: any): boolean; getResourceBundle(lng: any, ns: any): null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Initializes i18next with mock settings for testing */ declare function mockAppInit(): Promise; declare const provideI18NextMockAppInitializer: () => i0.EnvironmentProviders; /** * Provides a mock implementation of I18NEXT_SERVICE for testing purposes. * Also initializes i18next with mock settings. * * @returns An I18NextFeature that configures the service to use MockI18NextService * * Example: * ```typescript * providers: [ * provideI18Next(withMock()) * ] * ``` */ declare function withMock(): I18NextFeature; export { MockI18NextService, mockAppInit, provideI18NextMockAppInitializer, withMock };