/** * i18n setup for b2c-cli. * * This module registers CLI-specific translations with the 'cli' namespace. * The core i18n infrastructure comes from @salesforce/b2c-tooling-sdk. * * Usage in commands: * import { t } from '../i18n/index.js' * this.log(t('commands.sites.list.fetching', 'Fetching sites from {{hostname}}...', { hostname })) */ import { type TOptions } from '@salesforce/b2c-tooling-sdk'; /** The namespace used by b2c-cli messages */ export declare const CLI_NAMESPACE = "cli"; /** * Translate a CLI message key with an inline default. * * This is a convenience wrapper that uses the 'cli' namespace. * For b2c-tooling messages, import t directly from @salesforce/b2c-tooling-sdk. * * @param key - Dot-notation key (e.g., 'commands.sites.list.fetching') * @param defaultValue - The default English string * @param options - Optional interpolation values * @returns The translated string * * @example * t('commands.sites.list.fetching', 'Fetching sites from {{hostname}}...', { hostname }) */ export declare function t(key: string, defaultValue: string, options?: TOptions): string; export { setLanguage, getLanguage, getI18nInstance } from '@salesforce/b2c-tooling-sdk'; /** * Append documentation URL to a description string. * * @param description - The description text * @param docsPath - Path relative to DOCS_BASE_URL (e.g., '/cli/code.html#b2c-code-activate') * @returns Description with appended docs URL * * @example * withDocs('Activate or reload a code version', '/cli/code.html#b2c-code-activate') * // Returns: "Activate or reload a code version\n\nDocs: https://salesforcecommercecloud.github.io/b2c-developer-tooling/cli/code.html#b2c-code-activate" */ export declare function withDocs(description: string, docsPath: string): string;