import { StyleSheet } from "react-native"; import type { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, } from "react"; import type { FormattedCssStyleSheet } from "../types"; export interface WithCssStyleSheetProps { cssStyleSheet?: StyleSheet.NamedStyles; } export default function withCssStyleSheet< Style extends FormattedCssStyleSheet, Component >( style: Style, component: React.ComponentType ): ForwardRefExoticComponent< PropsWithoutRef> & RefAttributes >;