import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React from 'react';
import { Dispatch, SetStateAction, PropsWithChildren } from 'react';
import { Language } from './util.js';

type LanguageContextValue = {
    language: Language;
    setLanguage: Dispatch<SetStateAction<Language>>;
};
declare const LanguageContext: React.Context<LanguageContextValue>;
type LanguageWithSystem = Language | 'system';
type LanguageProviderProps = {
    language?: LanguageWithSystem;
};
declare const LanguageProvider: ({ children, language }: PropsWithChildren<LanguageProviderProps>) => react_jsx_runtime.JSX.Element;
declare const useLanguage: () => LanguageContextValue;
declare const useLocale: (overWriteLanguage?: Language) => string;

export { LanguageContext, type LanguageContextValue, LanguageProvider, useLanguage, useLocale };
