import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export type Ux4gToastCategory = 'info' | 'success' | 'warning' | 'error' | 'slot'; export type Ux4gToastLayout = 'full' | 'stacked'; export interface Ux4gToastData { category: Ux4gToastCategory; title: string; subtitle?: string; actionText?: string; onActionClick?: () => void; showCloseButton?: boolean; backgroundColor?: string; icon?: React.ReactNode; iconColor?: string; actionColor?: string; autoClose?: boolean; durationMs?: number; /** * If true, this specific toast slides in from the bottom. * Overrides the global `isBottom` from the provider. */ isBottom?: boolean; } export interface Ux4gToastProps extends Omit { onCloseClick?: () => void; layout?: Ux4gToastLayout; style?: StyleProp; } export declare const Ux4gToast: React.FC; interface ToastContextValue { showToast: (data: Ux4gToastData) => void; dismiss: () => void; } export declare const useUx4gToast: () => ToastContextValue; export interface Ux4gToastProviderProps { children: React.ReactNode; /** * If true, toasts slide in from the bottom. Otherwise, from the top. * @default false */ isBottom?: boolean; } export declare const Ux4gToastProvider: React.FC; export {}; //# sourceMappingURL=Toast.d.ts.map