import { css } from '@emotion/core'; import { CreateStyled } from '@emotion/styled'; import { ThemeProviderProps, withTheme } from 'emotion-theming'; import * as React from 'react'; export interface Theme { colors: T.Dict; sizes: T.Dict; rawSizes: T.Dict; fonts: T.Dict; zIndexes: T.Dict; others: T.Dict; } export interface ThemedProps { theme: Theme; } declare const ThemeContext: React.Context; export declare const styled: CreateStyled; export declare const ThemeConsumer: React.Consumer; export declare const ThemeProvider: React.ProviderExoticComponent>; export declare const useTheme: () => Theme; export declare function themeGet(type: keyof Theme, name: string | number): ({ theme }: Partial) => string | number | undefined; export declare function themeColor(name: keyof Theme['colors']): ({ theme }: Partial) => string | number | undefined; export declare function themeSize(name: keyof Theme['sizes']): ({ theme }: Partial) => string | number | undefined; export { css, withTheme }; export default ThemeContext;