// Type definitions for @callstack/react-theme-provider 1.0.2 // TypeScript version 3.0.3 import * as React from 'react'; import hoistNonReactStatics = require('./hoist-non-react-statics'); type $Without = T extends any ? Pick> : never; type $DeepPartial = { [P in keyof T]?: $DeepPartial }; export type ThemingType = { ThemeProvider: React.ComponentType<{children: React.ReactNode, theme?: Theme }>; withTheme: ( WrappedComponent: React.ComponentType & C ) => React.ComponentType< $Without & { theme?: $DeepPartial } > & hoistNonReactStatics.NonReactStatics; useTheme(overrides?: $DeepPartial): T; }; export const createTheming: (defaultTheme: Theme) => ThemingType;