import { ReactNode } from '../../shims/react-compat-shim.js'; import { default as enTranslation } from './en/translation.json'; type TranslationValue = string | { [key: string]: TranslationValue; }; export type Translations = Record; export type ArgumentsType = Record; export type ArgumentsTypeText = ArgumentsType; export type ArgumentsTypeHtml = ArgumentsType; export type Resources = { [lang: string]: Translations; }; type Prettify = { [K in keyof T]: T[K] extends object ? Prettify : T[K]; } & unknown; type CreateTranslation = { [K in keyof T]: T[K] extends string ? string : T[K] extends object ? CreateTranslation : T[K]; }; export type Translation = Prettify>; type Join = K extends string | number ? P extends string | number ? `${K}.${P}` : never : never; type TranslationPaths = T extends object ? { [K in keyof T]: T[K] extends string ? K & string : T[K] extends object ? (K & string) | Join> : never; }[keyof T] : never; export type TranslationKey = TranslationPaths; export type TranslationContextType = { t: (key: TranslationKey, argumentValues?: ArgumentsTypeText) => string; tHtml: (key: TranslationKey, argumentValues?: ArgumentsTypeHtml) => ReactNode; }; export {}; //# sourceMappingURL=types.d.ts.map