import { PropInjector } from '@material-ui/types'; import { Breakpoint } from '../styles/createBreakpoints'; export interface WithWidthOptions { withTheme?: boolean; noSSR?: boolean; initialWidth?: Breakpoint; resizeInterval?: number; } export interface WithWidth { width: Breakpoint; } export interface WithWidthProps extends Partial { innerRef?: React.Ref; } export function isWidthDown( breakpoint: Breakpoint, screenWidth: Breakpoint, inclusive?: boolean ): boolean; export function isWidthUp( breakpoint: Breakpoint, screenWidth: Breakpoint, inclusive?: boolean ): boolean; export default function withWidth( options?: WithWidthOptions ): PropInjector;