import React from 'react'; import { Toast, ToastPosition, ExtendedToastOptions } from './Toast.types'; export declare const createRectRef: (onRect: (rect: DOMRect) => void) => (el: HTMLElement | null) => void; export interface ToastContainerProps { /** * Render function for each individual toast. * This can be used to render custom toasts, although we recommend using the standard version, * unless absolutely necessary. */ children?: (t: Toast) => JSX.Element; /** * Style object for the toast container if needed. */ containerStyle?: React.CSSProperties; /** * Custom classname for toast container if needed. */ containerClassName?: string; /** * The vertical gap between each toast notification when multiple toasts are on screen (in pixels). */ gutter?: number; /** * Global position for all toasts in container. * NOTE: This can be overwritten by the position property of each individual toast. */ position?: ToastPosition; /** * Display toasts in reverse order. * NOTE: Reverse order in this case means that older toasts remain close to the position origin. * and newer toasts appear further away from the origin. */ reverseOrder?: boolean; /** * Global options for each toast. Can be overwritten for each individual toast as needed. */ toastOptions?: ExtendedToastOptions; /** * Props spread into main container. */ [x: string]: unknown; } export declare const ToastContainer: React.FC;