import React, { ComponentType } from 'react'; import { FullBreakpoint } from '../../contexts/ResponsiveContext'; import { BaseSizeKey } from '../../typings'; import { WithResponsiveSizes } from './types'; declare type ResponsiveComponentProps

= Omit & { [key in K]: P[key] extends BaseSizeKey | undefined ? NonNullable | WithResponsiveSizes[NonNullable][] : never; } & { /** component would be hidden when match hidden patterns */ hiddenPatterns?: FullBreakpoint | FullBreakpoint[]; }; /** * Make component can responsive size */ declare function withResponsive

(Component: ComponentType

, responsivePropKeys: K[]): React.ForwardRefExoticComponent> & React.RefAttributes>; export { withResponsive };