import { ReactNode } from 'react'; import { ClassNameInterface, ElevationInterface, IdInterface, IntentInterface, TestId, } from './utils'; export type PortalPosition = | 'top' | 'top-right' | 'right' | 'bottom-right' | 'bottom' | 'bottom-left' | 'left' | 'top-left'; interface ToastInterface extends IdInterface, IntentInterface { autoCloseTimer?: number; closeDebounceTimer?: number; /** Used to position within the portal */ portalPosition?: PortalPosition; } export type ImperativeToast = { children: ReactNode } & ToastInterface; export type ToastProps = { close: () => void; } & ClassNameInterface & ElevationInterface & TestId & ToastInterface;