import { ReactNode } from 'react';
import { LocaleProviderProps } from '../Locale/context';
import { ThemeProviderProps } from '../Theme/theme-provider';
export interface ConfigProviderProps extends Omit<LocaleProviderProps, 'translations'>, ThemeProviderProps {
    children: ReactNode;
    translations?: Record<string, any>;
}
/**
 * 集中化配置
 */
export declare function ConfigProvider({ children, theme, injectFirst, darkSchemeClass, prefer, disableBlockletTheme, enableColorScheme, disableStyleCache, locale, fallbackLocale, translations, languages, onLoadingTranslation, }: ConfigProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useConfig(): {
    mode: import('@mui/material').PaletteMode;
    toggleMode: () => void;
    changeMode: (mode: import('@mui/material').PaletteMode) => void;
    prefer?: import('../Theme').Prefer;
    locale: import('../type').Locale;
    defaultLocale: import('../type').Locale;
    changeLocale: (locale: import('../type').Locale) => void;
    t: (key: string, data?: Record<string, any>) => string;
    languages: {
        code: string;
        name: string;
    }[];
    theme: import('@mui/material').Theme;
};
