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