import * as styledComponents from 'styled-components'; import { ThemeInterface } from './theme'; export type StyledFunction = styledComponents.ThemedStyledFunction; function withProps( styledFunction: StyledFunction>, ): StyledFunction> { return styledFunction; } const { default: styled, css, injectGlobal, keyframes, ThemeProvider, withTheme, } = (styledComponents as styledComponents.ThemedStyledComponentsModule< any >) as styledComponents.ThemedStyledComponentsModule; export { css, injectGlobal, keyframes, ThemeProvider, withTheme, withProps }; export default styled;