import * as styledComponents from 'styled-components'; // Styled components typings for using babel-plugin BEFORE typescript declare module 'styled-components' { interface ThemedStyledFunction { // adding "| string[]" for transpileTemplateLiterals and similar below ( strings: TemplateStringsArray | string[], ...interpolations: Interpolation>[] ): StyledComponentClass; new ( strings: TemplateStringsArray | string[], ...interpolations: Interpolation>[] ): StyledComponentClass

; // adding "withConfig" for transpileTemplateLiterals withConfig(config: any): ThemedStyledFunction; } export interface ThemedCssFunction { // adding "| string[]" for transpileTemplateLiterals and similar below ( strings: TemplateStringsArray | string[], ...interpolations: SimpleInterpolation[] ): InterpolationValue[];

( strings: TemplateStringsArray | string[], ...interpolations: Interpolation>[] ): FlattenInterpolation>[]; } interface ThemedStyledComponentsModule { keyframes( strings: TemplateStringsArray | string[], ...interpolations: SimpleInterpolation[] ): string; injectGlobal( strings: TemplateStringsArray | string[], ...interpolations: SimpleInterpolation[] ): void; } }