import * as react_jsx_runtime from 'react/jsx-runtime'; import { GraphQLError } from '@vn-sdk/runtime-client-gql'; import React from 'react'; import { PartialBy, AiSDKError } from '@vn-sdk/shared'; interface Toast { id: string; message: string | React.ReactNode; type: "info" | "success" | "warning" | "error"; duration?: number; } interface ToastContextValue { toasts: Toast[]; addToast: (toast: PartialBy) => void; addGraphQLErrorsToast: (errors: GraphQLError[]) => void; removeToast: (id: string) => void; enabled: boolean; bannerError: AiSDKError | null; setBannerError: (error: AiSDKError | null) => void; } declare function useToast(): ToastContextValue; declare function ToastProvider({ enabled, children, }: { enabled: boolean; children: React.ReactNode; }): react_jsx_runtime.JSX.Element; export { ToastProvider, useToast };