import 'twin.macro'; import { css as cssImport } from '@emotion/react'; import styledImport from '@emotion/styled'; import { CSSInterpolation } from '@emotion/serialize'; declare module 'twin.macro' { // The styled and css imports const styled: typeof styledImport; const css: typeof cssImport; } declare module 'react' { // The tw and css prop interface DOMAttributes { tw?: string; css?: CSSInterpolation; } }