/** * Function to hide a previously displayed toast. It should * be used along with the `showToast` method. * * ## @example * ```jsx * // other necessary imports up here... * import { showToast, hideToast } from `admin-shell-utils` * * const App = () => { * const { formatMessage } = useIntl() * * return ( *
* * *
* ) * } * ``` */ export declare function hideToast(): void; /** * Function to display a toast on the admin-shell level. * It displays the payload as the toast message. * * ## @example * ```jsx * // other necessary imports up here... * import { showToast } from `admin-shell-utils` * * const App = () => { * const { formatMessage } = useIntl() * * return ( *
*
* ) * } * ``` */ export declare function showToast({ payload }: ToastParams): void; export interface ToastParams { /** * Payload of the toast, or toast message. * */ payload: string; }