/** @packageDocumentation * @module Common */ import * as React from "react"; import { Timer } from "../utils/Timer.js"; /** Properties for [[withTimeout]] React higher-order component * @public * @deprecated in 4.15.0. Props of deprecated {@link withTimeout} HOC. */ export interface WithTimeoutProps { /** Timeout duration in milliseconds */ timeout: number; /** Callback function for timeout */ onTimeout?: () => void; } /** withTimeout is a React higher-order component that adds timeout support. * @public * @deprecated in 4.15.0. Not used by AppUI. */ export declare const withTimeout: (Component: React.ComponentType) => { new (props: ComponentProps & WithTimeoutProps): { timer: Timer; componentDidMount(): void; /** @internal */ componentDidUpdate(_prevProps: Readonly): void; componentWillUnmount(): void; render(): React.JSX.Element; startTimer(timeout: number): void; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly; state: Readonly<{}>; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; 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: ComponentProps & WithTimeoutProps, context: any): { timer: Timer; componentDidMount(): void; /** @internal */ componentDidUpdate(_prevProps: Readonly): void; componentWillUnmount(): void; render(): React.JSX.Element; startTimer(timeout: number): void; context: unknown; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly; state: Readonly<{}>; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; 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; }; contextType?: React.Context | undefined; propTypes?: any; }; //# sourceMappingURL=withTimeout.d.ts.map