/** * Different gt components */ export declare enum GT_COMPONENT_TYPES { T = "T", Tx = "Tx", Var = "Var", Currency = "Currency", DateTime = "DateTime", RelativeTime = "RelativeTime", Num = "Num", Derive = "Derive", Branch = "Branch", Plural = "Plural", LocaleSelector = "LocaleSelector", GtInternalTranslateJsx = "GtInternalTranslateJsx", GtInternalVar = "GtInternalVar", GtInternalNum = "GtInternalNum", GtInternalCurrency = "GtInternalCurrency", GtInternalDateTime = "GtInternalDateTime" } /** * GT functions that produce callbacks */ export declare enum GT_FUNCTIONS_WITH_CALLBACKS { useGT = "useGT", getGT = "getGT", useTranslations = "useTranslations", getTranslations = "getTranslations", useMessages = "useMessages", getMessages = "getMessages" } /** * Other GT functions */ export declare enum GT_OTHER_FUNCTIONS { msg = "msg", t = "t", derive = "derive", GtInternalRuntimeTranslateString = "GtInternalRuntimeTranslateString", GtInternalRuntimeTranslateJsx = "GtInternalRuntimeTranslateJsx" } /** * Different gt functions */ export type GT_FUNCTIONS = GT_FUNCTIONS_WITH_CALLBACKS | GT_OTHER_FUNCTIONS; /** * gt callback functions */ export declare enum GT_CALLBACK_FUNCTIONS { useGT_callback = "useGT_callback", getGT_callback = "getGT_callback", useTranslations_callback = "useTranslations_callback", getTranslations_callback = "getTranslations_callback", useMessages_callback = "useMessages_callback", getMessages_callback = "getMessages_callback" } /** * Maps GT Functions to their callback functions */ export declare const GT_FUNCTIONS_TO_CALLBACKS: Record; /** * GT derive functions */ export declare const GT_DERIVE_STRING_FUNCTIONS: readonly [GT_OTHER_FUNCTIONS.derive]; /** * All gt functions (both regular and callback functions) */ export type GT_ALL_FUNCTIONS = GT_FUNCTIONS | GT_CALLBACK_FUNCTIONS | GT_COMPONENT_TYPES; /** * GT import sources */ export declare enum GT_IMPORT_SOURCES { GT_NEXT = "gt-next", GT_NEXT_SERVER = "gt-next/server", GT_REACT = "gt-react", GT_REACT_CLIENT = "gt-react/client", GT_REACT_BROWSER = "gt-react/browser", GT_I18N = "gt-i18n" } /** * Branch control props — not translatable content. * `branch` is the selector key; `data-*` props are HTML attributes ignored at runtime. * `data-*` is handled as a prefix check, not listed here. */ export declare const BRANCH_CONTROL_PROPS: Set; /** * Plural control props — not translatable content. * `n` is the count, `locales` is the locale hint. */ export declare const PLURAL_CONTROL_PROPS: Set; /** * Set of valid plural forms for Plural components */ export declare const PLURAL_FORMS: Set; /** * Fields that must be string literals for useGT_callback / getGT_callback */ export declare enum USEGT_CALLBACK_OPTIONS { $id = "$id", $context = "$context", $maxChars = "$maxChars", $_hash = "$_hash", $format = "$format", $requiresReview = "$requiresReview" } /** * Maps GT Component Types to their minified names */ export declare const MINIFY_CANONICAL_NAME_MAP: { readonly Var: "v"; readonly GtInternalVar: "v"; readonly Num: "n"; readonly GtInternalNum: "n"; readonly Currency: "c"; readonly GtInternalCurrency: "c"; readonly DateTime: "d"; readonly GtInternalDateTime: "d"; readonly RelativeTime: "rt"; readonly Derive: "s"; readonly Branch: "b"; readonly Plural: "p"; }; //# sourceMappingURL=constants.d.ts.map