export {}; interface ThemeWithProps { components?: { [K in keyof Components]: { defaultProps?: Partial } }; } type ThemedProps = Theme extends { components: Record; } ? Props : {}; export default function getThemeProps(params: { props: Props; name: Name; theme?: Theme; }): Props & ThemedProps;