import { PrimariaApi } from './api/api'; import { primariaShellId } from './constants'; declare let shellLocaleManager: any; export declare const useLocalization: (api: PrimariaApi) => Promise; type LocaleKeys = T extends object ? { [K in keyof T]: `${K & string}` | (T[K] extends object ? `${K & string}.${LocaleKeys}` : never); }[keyof T] : never; export type ShellLocales = LocaleKeys<(typeof locales)[typeof defaultLang][typeof primariaShellId]>; export declare const translate: (path: ShellLocales) => any; export { shellLocaleManager }; declare const defaultLang = "ca"; export declare const locales: { ca: { "primaria-shell": { title: string; actions: { create: string; toggleMenuClose: string; toggleMenuOpen: string; askExit: string; }; errors: { session: string; invalidPatient: string; exit: string; }; header: { workCenter: string; role: string; speciality: string; }; busyManager: { title: string; }; pdfManager: { uploaded: string; alreadyUploaded: string; navButtonLabel: string; missingData: string; duplicatedSource: string; tooltipMessage: string; }; pdfVisor: { noPdfSelected: string; }; importDataManager: { title: string; actions: { cancel: string; import: string; }; }; }; }; };