import React from 'react'; /** * Properties for {@link AlertDisplay} * * @public */ export type AlertDisplayProps = { anchorOrigin?: { vertical: 'top' | 'bottom'; horizontal: 'left' | 'center' | 'right'; }; transientTimeoutMs?: number; }; /** * Displays alerts from {@link @backstage/core-plugin-api#AlertApi} * * @public * @remarks * * Shown as SnackBar at the center top of the page by default. Configurable with props. * * @param anchorOrigin - The `vertical` property will set the vertical orientation of where the AlertDisplay will be located * and the `horizontal` property will set the horizontal orientation of where the AlertDisplay will be located * @param transientTimeoutMs - Number of milliseconds a transient alert will stay open for. Default value is 5000 * * @example * Here's some examples: * ``` * // This example shows the default usage, the SnackBar will show up at the top in the center and any transient messages will stay open for 5000ms * * * // With this example the SnackBar will show up in the bottom right hand corner and any transient messages will stay open for 2500ms * * * // If you want to just set the time a transientTimeoutMs, you can do that like this: * * ``` */ export declare function AlertDisplay(props: AlertDisplayProps): React.JSX.Element | null;