/* eslint-disable */ import { Component, ComponentType, ReactNode, ReactElement } from 'react' type Omit = Pick> declare namespace sizeMe { export interface SizeMeProps { readonly size: { readonly width: number | null readonly height: number | null } } export interface SizeMeOptions { monitorHeight?: boolean monitorWidth?: boolean noPlaceholder?: boolean refreshMode?: 'throttle' | 'debounce' refreshRate?: number resizeDetectorStrategy?: 'scroll' | 'object' } export interface SizeMeRenderProps extends SizeMeOptions { children: (props: SizeMeProps) => ReactElement } export class SizeMe extends Component {} export type WithSizeOnSizeCallback = (size: SizeMeProps['size']) => void export interface WithSizeProps { onSize?: WithSizeOnSizeCallback } export function withSize( options?: SizeMeOptions, ):

( component: ComponentType

, ) => ComponentType & WithSizeProps> export let noPlaceholders: boolean } declare function sizeMe( options?: sizeMe.SizeMeOptions, ):

( component: ComponentType

, ) => ComponentType & sizeMe.WithSizeProps> export = sizeMe