import React, { PropsWithChildren } from "react"; export interface I18nDataSource { [key: string]: string; } export interface I18nCombinedSource { [key: string]: I18nDataSource; } export interface contextType { state: I18nDataSource; toggle: (str: string) => void; } export declare let Context: React.Context; export interface I18nProps { /** 默认语言*/ defaultLang: keyof I18nDataSource; /** 语言库 */ library: I18nCombinedSource; } declare function I18n(props: PropsWithChildren): JSX.Element; export default I18n;