import * as React from 'react'; import { Theme } from './theme'; export type ConsistentWith = { [P in keyof DecorationTargetProps]: P extends keyof InjectedProps ? InjectedProps[P] extends DecorationTargetProps[P] ? DecorationTargetProps[P] : InjectedProps[P] : DecorationTargetProps[P]; }; type PropInjector> = , InjectedProps>>>(component: C) => React.ComponentType>, keyof InjectedProps> & AdditionalProps>; export interface ThemedComponentProps extends Partial>> { innerRef?: React.Ref | React.RefObject; } type WithTheme = PropInjector>, ThemedComponentProps>; export interface InjectedTheme { theme: T; } export declare const withTheme: WithTheme; export {};