import translationsRaw from './translations.json'; import { StraussValidationError } from '../types'; /** Chiavi dei testi del modulo, sovrascrivibili tramite la prop `labels`. */ export type StraussLabelKey = keyof typeof translationsRaw; /** Override dei testi, per chi vuole testi propri invece di quelli di libreria. */ export type StraussLabels = Partial>; export type StraussTranslate = (key: StraussLabelKey, variables?: Record) => string; /** * Risolve i testi del modulo: override della prop `labels`, poi la lingua * corrente, poi l'inglese come fallback. */ export declare const useStraussTranslate: (labels?: StraussLabels) => StraussTranslate; /** * Trasforma un errore di validazione tipizzato nel messaggio localizzato * corrispondente. Utile a chi usa `validateStraussFiles` o il picker in * modalità `select` e vuole mostrare gli errori a modo suo. */ export declare const useStraussValidationMessage: (labels?: StraussLabels) => ((error: StraussValidationError) => string); //# sourceMappingURL=labels.d.ts.map