import React from "react"; import type { DefaultTheme } from "./defaultTheme"; interface ThemeProviderProps> { children: React.ReactNode; theme: NonNullable | ((outerTheme: T) => NonNullable); } interface IThemeProvider> { (props: ThemeProviderProps): JSX.Element; propTypes?: React.WeakValidationMap> | undefined; } /** * This component takes a `theme` prop. * It makes the `theme` available down the React tree thanks to React context. * This component should preferably be used at **the root of your component tree**. */ declare const ThemeProvider: IThemeProvider; export default ThemeProvider;