@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
74 lines (73 loc) • 7.3 kB
TypeScript
export declare const StyledRect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGRectElement>, never>> & string;
export declare const StyledTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@visx/tooltip/lib/tooltips/Tooltip").TooltipProps & import("react").HTMLAttributes<HTMLDivElement> & import("@visx/bounds/lib/enhancers/withBoundingRects").WithBoundingRectsProps & {
nodeRef?: React.Ref<HTMLDivElement>;
} & import("react").RefAttributes<{
node: HTMLElement | null | undefined;
nodeRef: React.RefObject<HTMLElement>;
componentDidMount(): void;
getRects(): Readonly<{}>;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | Pick<{}, K> | ((prevState: Readonly<{}>, props: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>) => {} | Pick<{}, K> | null) | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextState: Readonly<{}>, nextContext: any): void;
}>, never>> & string & Omit<{
new (props: import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps): {
node: HTMLElement | null | undefined;
nodeRef: React.RefObject<HTMLElement>;
componentDidMount(): void;
getRects(): Readonly<{}>;
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | Pick<{}, K> | ((prevState: Readonly<{}>, props: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>) => {} | Pick<{}, K> | null) | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
shouldComponentUpdate?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@visx/tooltip/lib/tooltips/TooltipWithBounds").TooltipWithBoundsProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType?: React.Context<any> | undefined;
}, keyof import("react").Component<any, {}, any>>;
export declare const TooltipTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
export declare const TooltipContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
export declare const ScrollContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
export declare const Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
export declare const Footer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {
width: number;
height: number;
}>> & string;
export declare const FooterContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;