export interface ThemeWithProps { components?: any; } export type ThemedProps = Theme extends { components: Record; } ? Props : {}; export default function useThemeProps< Theme extends ThemeWithProps, Props, Name extends keyof any, >(params: { props: Props; name: Name; defaultTheme?: Theme; themeId?: string; }): Props & ThemedProps;