import type { AnyObject } from '../types/misc.js'; export interface ILocalization { readonly Current: Readonly; } export interface IErrorsLocalization { readonly Errors: ValidationErrorsStrings; } export type StringsLoader = TStrings | (() => Promise); export type StringsDataSource = Record>; export type LocaleStrings = { locale: TLocale; strings: TStrings; }; export type ValidationErrorsStrings = Partial>; export type ValidationErrorsFactory = (strings: TStrings) => ValidationErrorsStrings;