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