import React from 'react'; declare type UnknownProps = Record; export declare const filterTransientProps: (props: T) => T; /** * Ensure that props prefixed with $ are not passed to underlying dom elements causing react warnings * * Usage example: * * type StyleProps = React.PropsWithChildren<{ * $myColor: string; * }>; * * // This will cause react warnings about the $myColor prop * const IncorrectBox = styled.div` * color: ${({ $myColor }) => $myColor}; * `; * * const CorrectBox = styled(withoutTransientProps((props: StyleProps) =>
))` * color: ${({ $myColor }) => $myColor}; * `; * * Transient props were introduced in styled-components > 5.1 however due to bugs introduced in that * release we are unable to upgrade. This is a "temporary" solution that may just last forever. */ export declare const withoutTransientProps: >(OriginalComponent: T) => T; export {};