declare module 'rosetta' { export interface Rosetta { /** Get/Set the language key */ locale(lang?: string): string; /** Define or extend the language table */ set(lang: string, table: T): void; /** Get the table of translations for a language */ table(lang: string): T | void; /** Retrieve a translation segment for the current language */ t | any[]>(key: string | (string | number)[], params?: X, lang?: string): string; } function rosetta(dict?: Record): Rosetta; export = rosetta; } declare module 'rosetta/debug' { export interface Rosetta { /** Get/Set the language key */ locale(lang?: string): string; /** Define or extend the language table */ set(lang: string, table: T): void; /** Get the table of translations for a language */ table(lang: string): T | void; /** Retrieve a translation segment for the current language */ t | any[]>(key: string | (string | number)[], params?: X, lang?: string): string; } function rosetta(dict?: Record): Rosetta; export = rosetta; }