/*! * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { HtmlProps } from "./HtmlProps.js"; export declare const toastRoleValues: readonly ["status", "alert"]; export declare const toastSeverityValues: readonly ["success", "info", "warning", "error"]; export type ToastProps = { /** * How long the Toast should appear before automatically disappearing, in milliseconds. Only takes effect when the Toast is not dismissible. * @default 6000 */ autoHideDuration?: number; /** * If `true`, the toast includes a close button allowing the user to dismiss it manually. */ isDismissable?: boolean; /** * If `true`, the toast is visible. */ isVisible?: boolean; /** * The visible label for the link rendered when `linkUrl` is provided. Has no effect without `linkUrl`. * @default "Learn more" */ linkText?: string; /** * If defined, the Toast will include a link to the URL */ linkUrl?: string; /** * Called when the Toast is closed, either automatically or by user dismissal. */ onHide?: () => void; /** * Sets the ARIA live-region role. * - If `'status'`, announces updates politely; use for non-critical dynamic messages. * - If `'alert'`, announces updates assertively; use for errors or urgent information. */ role?: (typeof toastRoleValues)[number]; /** * Controls the color and icon of the toast. */ severity: (typeof toastSeverityValues)[number]; /** * The text content of the Toast */ text: string; } & Pick; declare const MemoizedToast: import("react").MemoExoticComponent<({ autoHideDuration, isDismissable, linkText, linkUrl, isVisible: isVisibleProp, onHide: onHideProp, role, severity, testId, text, translate, }: ToastProps) => import("@emotion/react/jsx-runtime").JSX.Element>; export { MemoizedToast as Toast }; //# sourceMappingURL=Toast.d.ts.map