/** @packageDocumentation * @module Message */ import "./Toast.scss"; import * as React from "react"; import { CommonProps, NoChildrenProps } from "@bentley/ui-core"; /** Properties of [[Toast]] component. * @alpha Review naming of: animateOutTo, content, onAnimatedOut */ export interface ToastProps extends CommonProps, NoChildrenProps { /** Element to which the toast will animate out to. */ animateOutTo?: HTMLElement | null; /** Message content. */ content?: React.ReactNode; /** Function called when toast finishes to animate out. */ onAnimatedOut?: () => void; /** Describes timeout after which the toast starts to animate out (in ms). Defaults to 2000. */ timeout: number; } /** Default properties of [[Toast]] component. * @alpha */ export declare type ToastDefaultProps = Pick; declare enum Stage { Visible = 0, AnimatingOut = 1, AnimatedOut = 2 } /** State of [[Toast]] component. */ interface ToastState { /** Describes current toast stage. */ stage: Stage; /** Toast style that is applied based on current stage. */ toastStyle: ToastStyle; } /** Toast style. * @alpha */ export declare type ToastStyle = Pick; /** Footer message that animates out to specified element after some timeout. Used in [[Footer]] component. * @alpha */ export declare class Toast extends React.PureComponent { static readonly defaultProps: ToastDefaultProps; private _timer; private _toast; constructor(props: ToastProps); componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; private _handleTransitionEnd; private setStage; private animateOut; } export {}; //# sourceMappingURL=Toast.d.ts.map