import type nb from "./locales/nb"; type NestedKeyOf = { [Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}.${NestedKeyOf}` : `${Key}`; }[keyof ObjectType & (string | number)]; export type TFunction = (keypath: NestedKeyOf, replacements?: Record) => string; type RecursivePartial = { [P in keyof T]?: RecursivePartial; }; export type Translations = typeof nb; export type PartialTranslations = RecursivePartial; export type Component = keyof Translations; export type ComponentTranslation = RecursivePartial; export {};