/// import { CompiledStyleSheet, ComputedStyleSheet, ModeDeclarations } from './types'; /** * Computes styles for a react component, and ensures that they are kept up to * date as the component changes. * * In essence, this hooks the component's `componentWillUpdate`, and updates * the returned styles appropriately. */ export default function reactTo(component: React.Component, styles: CompiledStyleSheet, modes?: ModeDeclarations<{ props: TProps; state: TState; }>): ComputedStyleSheet;