import React from 'react'; import PropTypes from 'prop-types'; import { Theme } from '@material-ui/core/styles'; /** * * API: * * - [StyledProvider API](https://components-extra.netlify.app/utils/styled-provider) */ declare const StyledProvider: { ({ children, dark, theme, }: StyledProviderProps): StyledProviderType; propTypes: { children: PropTypes.Validator; dark: PropTypes.Requireable; theme: PropTypes.Requireable; }; }; export declare type StyledProviderType = React.ReactElement; export interface StyledProviderProps { /** * Any components that will use the theme. */ children: React.ReactNode; /** * Set to true to switch theme to dark mode. By default the theme is in light mode. */ dark?: boolean; /** * Your custom theme. It has to match Material-ui theming's syntax: * https://material-ui.com/customization/default-theme/ */ theme?: Theme | Record; } export default StyledProvider;