import { LocaleRuleTypes } from '../types'; type LocaleRuleType = (typeof LocaleRuleTypes)[keyof typeof LocaleRuleTypes]; /** * Generates a locale reference string based on the provided type, id, scope, and path. * The generated reference is in uppercase and follows a specific format based on the type. * @param type The type of the reference (e.g., DATAPAGE, VIEW, FIELD, etc.). * @param id The unique identifier for the reference. * @param scope Optional scope for scoped types. * @param path Optional path for types that support it. * @returns The generated locale reference string. */ export declare const getLocaleReference: (type: LocaleRuleType, id: string, scope?: string, path?: string) => string; /** * The LocalizationService class is responsible for providing localized strings based on the locale. * It retrieves localization fields from a language pack store and allows for token replacement in localized strings. * The class constructor takes an locale string and optional locale reference and path. * The localization fields are retrieved from the language pack store based on the provided locale and locale reference. */ export declare class LocalizationService { #private; private readonly locale; private readonly localeReference?; static readonly COMMON_LABELS = "COMMONLABELS"; private static readonly MESSAGES; private static readonly COMPONENT_FIELDS; private lookupList; /** * @param locale locale string. * @param localeReference Optional reference to a specific rule. * @param path Optional path for nested localization fields. * The constructor initializes the locale, locale reference, and localization fields. */ constructor(locale: string, localeReference?: string); /** * Retrieves the localized value for a given key and replaces tokens with provided arguments. * @function * @param input text for localization. * @param args Optional arguments to replace tokens in the localized string. * @returns The localized string with tokens replaced, or the Input value if not found. */ getLocalizedText(input: string, args?: string[]): string; /** * Retrieves the localized message for a given key from the Messages locale fields. * @param input text for localization. * @param args Optional arguments to replace tokens in the localized string. * @returns The localized message string with tokens replaced, or the key if not found. */ getLocalizedMessage(input: string, args?: string[]): string; /** * Retrieves the localized data page text for a given data page name and field name. * @param input text for localization. * @param dataPageName The name of the data page. * @param fieldName The name of the field within the data page. * @param args Optional arguments to replace tokens in the localized string. * @returns The localized text for the data page field, or the input value if not found. * * getLocalizedDataPage('Hello {1}', 'D_Address', 'greeting', ['World']); * */ getLocalizedDataPage(input: string, dataPageName: string, fieldName: string, args?: string[]): string; /** * * @param lookupList An array of strings representing the lookup list. * This method sets the lookup list for the LocalizationService instance. * It expects an array of strings and assigns it to the lookupList property. * @protected * @example * service.setLookupList(['CASE!SERVICEREQUEST', 'PORTAL!WEBPORTAL']); */ setLookupList(lookupList: string[]): void; } export {};