import * as ToastPrimitive from '@radix-ui/react-toast'; import * as React from 'react'; import type { CSS } from '../../theme'; export interface toastProps { children?: React.ReactNode; swipeDirection?: 'left' | 'right'; swipeThreshold?: number; duration?: number; open?: boolean; onOpenChange?(open: boolean): void; title?: string; description?: string; altText?: string; hotkey?: string[]; label?: string; } /** * * * * Toast[Root] * * */ type ToastPrimitiveProps = React.ComponentProps; type ToastProps = ToastPrimitiveProps & toastProps & { css?: CSS; }; /** * * * Toast[Heading] */ type ToastHeadingPrimitiveProps = React.ComponentProps; type ToastHeadingProps = ToastHeadingPrimitiveProps & { css?: CSS; }; /** * * Toast[Description] */ type ToastDescriptionPrimitiveProps = React.ComponentProps; type ToastSubheadingProps = ToastDescriptionPrimitiveProps & { css?: CSS; }; /** * * * Toast[Action] * */ type ToastActionPrimitiveProps = React.ComponentProps; type ToastActionProps = ToastActionPrimitiveProps & { css?: CSS; }; /** * * * Toast[Close] * * */ type ToastClosePrimitiveProps = React.ComponentProps; type ToastCloseProps = ToastClosePrimitiveProps & { css?: CSS; }; /** ------------------ TOAST EXPORTS ----------------------- */ export declare const Toast: React.MemoExoticComponent & React.RefAttributes>>; export declare const ToastHeading: React.MemoExoticComponent & React.RefAttributes>>; export declare const ToastSubheading: React.MemoExoticComponent & React.RefAttributes>>; export declare const ToastCloseButton: React.MemoExoticComponent & React.RefAttributes>>; export declare const ToastActionItem: React.MemoExoticComponent & React.RefAttributes>>; /** ------------------------------------------ */ export type { ToastActionProps, ToastHeadingProps, ToastProps, ToastSubheadingProps }; //# sourceMappingURL=toast.d.ts.map