import { Ref } from 'vue'; import { SwipeDirection } from './utils'; type ToastProviderContext = { label: Ref; duration: Ref; swipeDirection: Ref; swipeThreshold: Ref; toastCount: Ref; viewport: Ref; onViewportChange: (viewport: HTMLElement) => void; onToastAdd: () => void; onToastRemove: () => void; isFocusedToastEscapeKeyDownRef: Ref; isClosePausedRef: Ref; }; export interface ToastProviderProps { /** * An author-localized label for each toast. Used to help screen reader users * associate the interruption with a toast. * @defaultValue 'Notification' */ label?: string; /** * Time in milliseconds that each toast should remain visible for. * @defaultValue 5000 */ duration?: number; /** * Direction of pointer swipe that should close the toast. * @defaultValue 'right' */ swipeDirection?: SwipeDirection; /** * Distance in pixels that the swipe must pass before a close is triggered. * @defaultValue 50 */ swipeThreshold?: number; } export declare const injectToastProviderContext: (fallback?: T | undefined) => T extends null ? ToastProviderContext | null : ToastProviderContext, provideToastProviderContext: (contextValue: ToastProviderContext) => ToastProviderContext; declare const _default: __VLS_WithTemplateSlots, { label: string; duration: number; swipeDirection: string; swipeThreshold: number; }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly, { label: string; duration: number; swipeDirection: string; swipeThreshold: number; }>>>, { label: string; duration: number; swipeDirection: SwipeDirection; swipeThreshold: number; }, {}>, { default?(_: {}): any; }>; export default _default; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal : P[K]; }; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; }; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};