import * as React from 'react'; import { Theme } from './createMuiTheme'; /** * This is basically the API of JSS. It defines a Map, * where * * - the `keys` are the class (names) that will be created * - the `values` are objects that represent CSS rules (`React.CSSProperties`). */ export type StyleRules = Record; export type StyleRulesCallback = ( theme: Theme, ) => StyleRules; export interface StylesCreator { create(theme: Theme, name: string): StyleRules; options: { index: number }; themingEnabled: boolean; } export interface WithStylesOptions { flip?: boolean; withTheme?: boolean; name?: string; } export type ClassNameMap = Record; export interface WithStyles { classes: ClassNameMap; theme?: Theme; } export interface StyledComponentProps { classes?: Partial>; innerRef?: React.Ref; } export default function withStyles( style: StyleRules | StyleRulesCallback, options?: WithStylesOptions, ):

( component: React.ComponentType

>, ) => React.ComponentType

>;