import { GTTranslationOptions } from "gt-i18n/types"; //#region src/functions/translation/t.d.ts /** * Translate a message * @param {string} message - The message to translate. * @param {GTTranslationOptions} [options] - The options for the translation. * @returns {string} The translated message. * * @example * t('Hello, world!'); // Translates 'Hello, world!' * * @example * t('Hello, {name}!', { name: 'John' }); // Translates 'Hello, John!' * * @example * t`Hello, ${name}` // Translate via tagged template literal * */ declare const t: StringOrTemplateSyncResolutionFunction; /** * Overloaded type for the `t` function. * - Tagged template: t`Hello, ${name}` (transformed by the compiler plugin at build time) * - Function call: t("Hello, {name}", { name: "John" }) * * {@link TemplateSyncResolutionFunction} * {@link SyncResolutionFunction} */ interface StringOrTemplateSyncResolutionFunction { (strings: TemplateStringsArray, ...values: unknown[]): string; (message: string, options?: GTTranslationOptions): string; } //#endregion export { t }; //# sourceMappingURL=t.d.ts.map