///
import React from 'react';
export declare type WithScreenSizeProps = {
windowResizeDebounceTime?: number;
enableDebounceLeadingCall?: boolean;
};
declare type WithScreenSizeState = {
screenWidth?: number;
screenHeight?: number;
};
export declare type WithScreenSizeProvidedProps = WithScreenSizeState;
export default function withScreenSize(BaseComponent: React.ComponentType): {
new (props: Readonly): {
state: {
screenWidth: undefined;
screenHeight: undefined;
};
componentDidMount(): void;
componentWillUnmount(): void;
resize: import("lodash").DebouncedFunc<() => void>;
render(): JSX.Element | null;
context: any;
setState(state: WithScreenSizeState | ((prevState: Readonly, props: Readonly) => WithScreenSizeState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly & Readonly<{
children?: React.ReactNode;
}>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any;
componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void;
};
new (props: BaseComponentProps & WithScreenSizeState, context?: any): {
state: {
screenWidth: undefined;
screenHeight: undefined;
};
componentDidMount(): void;
componentWillUnmount(): void;
resize: import("lodash").DebouncedFunc<() => void>;
render(): JSX.Element | null;
context: any;
setState(state: WithScreenSizeState | ((prevState: Readonly, props: Readonly) => WithScreenSizeState | Pick | null) | Pick | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly & Readonly<{
children?: React.ReactNode;
}>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any;
componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void;
};
defaultProps: {
windowResizeDebounceTime: number;
enableDebounceLeadingCall: boolean;
};
contextType?: React.Context | undefined;
};
export {};
//# sourceMappingURL=withScreenSize.d.ts.map