import type { TTranslation, ILocale } from "../config/types/index.d.mts"; type TMessage = { message: string; }; /** * Хук позволяет использовать локализованное сообщение * @returns {TMessage} */ declare const useMessage: ({ fn, code, instance, options, }: TTranslation & Pick) => TMessage; /** * Функция проверяет наличие атрибута для локализации * @returns {Boolean} */ declare const getIsAttr: (attr?: ILocale["attr"]) => boolean; /** * Получает пользовательские атрибуты в виде объекта с одним уровнем вложенности * @param attrs{ILocale["attr"]} * @returns {Object} */ declare const getUserAttrs: (attrs: T) => T; export { getIsAttr, getUserAttrs, useMessage, };