import { translations } from './translations'; export type DataHubLang = 'zh' | 'en'; export type DataHubAntdMode = 'inherit' | 'isolated'; export type DataHubThemeToken = { colorPrimary?: string; colorSuccess?: string; colorWarning?: string; colorError?: string; colorInfo?: string; colorBgBase?: string; colorTextBase?: string; borderRadius?: number; fontFamily?: string; fontSize?: number; motion?: boolean; }; export type DataHubTheme = { token?: DataHubThemeToken; darkMode?: boolean; }; type MessageLeaf = { zh: string; en: string; }; type ProjectedMessages = T extends MessageLeaf ? string : T extends Record ? { [K in keyof T]: ProjectedMessages; } : T; export type DataHubLocaleMessages = ProjectedMessages; export type DataHubLocale = { locale: DataHubLang; } & DataHubLocaleMessages; export {};