1 | import * as React from 'react';
|
2 | import { ComponentType } from 'react';
|
3 | import { ComponentsProps } from './ResizeDetector';
|
4 | declare function withResizeDetector<P, ElementT extends HTMLElement = HTMLElement>(ComponentInner: ComponentType<P>, options?: ComponentsProps<ElementT>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Without<Without<OptionalKey<P, "targetRef">, "width">, "height">> & React.RefAttributes<HTMLElement>>;
|
5 | declare type Without<T, Key> = Key extends keyof T ? Omit<T, Key> : T;
|
6 | declare type OptionalKey<T, Key> = Key extends keyof T ? Omit<T, Key> & {
|
7 | [K in Key]?: T[K];
|
8 | } : T;
|
9 | export default withResizeDetector;
|