import React, { FC, ReactNode, CSSProperties } from 'react'; interface IStyled { styles: CSSProperties; children: ReactNode | ReactNode[]; } /** * Wrapper component for exposing styles * @param props React props - contains styles to be injected */ declare const Styled: FC; /** * HOC for exposing styles * Can be used instead of wrapper component * @param styles styles to be injected */ declare const withStyles: (styles: React.CSSProperties) => (WrappedComponent: React.ComponentClass | React.FC

) => { new (props: Readonly

): { render(): JSX.Element; context: any; setState(state: S | ((prevState: Readonly, props: Readonly

) => S | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly

& Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; }; new (props: P, context?: any): { render(): JSX.Element; context: any; setState(state: S | ((prevState: Readonly, props: Readonly

) => S | Pick | null) | Pick | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly

& Readonly<{ children?: React.ReactNode; }>; state: Readonly; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly

, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly

, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly

, nextContext: any): void; componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly

, nextState: Readonly, nextContext: any): void; }; contextType?: React.Context | undefined; }; /** * Strips away warning comment at the top * @param styles styles to strip comments from */ export declare const stripCommentsAndSelectors: (styles: string) => string; /** * Adds css variable fallback for legacy browsers * @param styles styles to add fallback to */ export declare const addVariableFallbacks: (styles: string) => string; export { withStyles, Styled };