import { CSSPseudoSelectorProps, CSSSelectorObject, EmotionLabel, SystemCssProperties, VariantProperty, CSSObject } from '@styled-system/css'; import { DefaultTheme } from 'styled-components'; import { FlexboxProps, GridProps, LayoutProps, SpaceProps, TypographyProps, ColorProps } from 'styled-system'; /** * DISCLAIMER: * This file is a copy of the original (https://github.com/styled-system/styled-system/blob/master/packages/css/src/index.js) * * The only adjustment that has been made is the typings in the css function as I couldn't get a declaration file to override a the SystemStyleObject */ export declare const get: (obj: any, key: any, def: any, p: any, undef: any) => any; export declare const responsive: (styles: any) => (theme: any) => {}; declare type SystemStyleObject = SystemCssProperties | SpaceProps | TypographyProps | FlexboxProps | GridProps | LayoutProps | ColorProps | CSSPseudoSelectorProps | CSSSelectorObject | VariantProperty | CustomUseThemeFunction | EmotionLabel | null; interface CustomUseThemeFunction { (theme: DefaultTheme): SystemStyleObject; } declare type CssFunctionReturnType = (props?: DefaultTheme | { theme: DefaultTheme; }) => CSSObject; declare type CssFunction = (input?: SystemStyleObject) => CssFunctionReturnType; export declare const css: CssFunction; export default css;