import { default as React, FC } from 'react'; import { ToasterProps } from '../../components/Toaster/Toaster'; import { MakeRequired } from '../../helpers'; import { ThemeMode } from '../../hooks/use-theme-mode'; import { Language, SomeTranslations } from '../../types'; import { CustomPoluiTheme } from './PoluiTheme'; /** * @name ThemeProps * @description Interface to define the props of the PoluiProvider theme component * @author Pol Gubau - https://polgubau.com * @property {ThemeMode} mode - The theme mode to be used * @property {CustomPoluiTheme} theme - The custom theme to be used */ export interface ThemeProps { mode?: ThemeMode; theme?: CustomPoluiTheme; } /** * @name ProviderProps * @description Interface to define the props of the PoluiProvider component * @property {React.ReactNode} children - The children to be rendered * @property {ThemeProps} theme - The theme to be used * @author Pol Gubau - https://polgubau.com */ interface ProviderProps { children: React.ReactNode; theme?: ThemeProps; keys?: { language: string; }; defaultLanguage?: Language; toaster?: ToasterProps; allLanguages?: Language[]; translations?: SomeTranslations; isDebug?: boolean; } export interface PolUiContextProps extends MakeRequired> { } export declare const PolUiContext: React.Context; /** * @name PoluiProvider * @description The PoluiProvider component is a wrapper component that provides the theme to all the components in the Polui library. It also initializes the theme mode and the custom theme if provided. * @param {ProviderProps} { children, theme} * @returns {React.ReactNode} The PoluiProvider component * @author Pol Gubau - https://polgubau.com */ export declare const PoluiProvider: FC; export {}; //# sourceMappingURL=PoluiProvider.d.ts.map