UNPKG

370 BTypeScriptView Raw
1import { ComponentType as CT } from 'react';
2import { Database, ThemeConfig, TransformFn, Entry } from './state';
3export interface ThemeProps {
4 db: Database;
5 currentEntry: Entry;
6 children(WrappedComponent: CT): JSX.Element;
7}
8export declare function theme(themeConfig: ThemeConfig, transform?: TransformFn): (WrappedComponent: CT) => CT<ThemeProps>;