
import { ProgressToastEmpty, ProgressToastOptions } from "./types.js";

//#region src/components/overlays/Toast/useProgressToast.d.ts
/**
 * Hook to display a progress toast that persists while loading.
 *
 * @example
 * ```tsx
 * useProgressToast(
 *   isLoading
 *     ? { isLoading: true, title: 'Saving...', icon: <Spinner /> }
 *     : { isLoading: false, title: 'Saved!', icon: <IconCheck />, theme: 'success' }
 * );
 *
 * // Or with error handling:
 * useProgressToast(
 *   isLoading
 *     ? { isLoading: true, title: 'Saving...', icon: <Spinner /> }
 *     : isError
 *       ? { isLoading: false, title: 'Error', description: errorMessage, theme: 'danger' }
 *       : { isLoading: false, title: 'Saved!', theme: 'success' }
 * );
 *
 * // Pass empty value to immediately remove any existing toast:
 * useProgressToast(shouldShow ? { isLoading: true, title: 'Loading...' } : null);
 *
 * // Or call with no argument to dismiss:
 * useProgressToast();
 * ```
 */
declare function useProgressToast(options?: ProgressToastOptions | ProgressToastEmpty): void;
//#endregion
export { useProgressToast };
//# sourceMappingURL=useProgressToast.d.ts.map