import { Subtitle, Title } from '../Title/theme'; import { Components } from './components'; import { Colors } from './color'; export interface ThemeOptions { title?: Title; subtitle?: Subtitle; components?: Components; colors?: Colors; } export interface Theme { title: Title; subtitle: Subtitle; components?: Components; colors: Colors; } export declare type ThemedProps = Theme extends { components: Record; } ? Props : {}; export interface ThemeWithProps { components?: { [K in keyof Components]: { defaultProps?: Partial; }; }; }