import { type ComputedRef, type MaybeRefOrGetter } from 'vue'; export interface DownloadProgress { loaded: MaybeRefOrGetter; /** [Claude] leave empty when the backend doesn't report a total – only the loaded count is shown then */ total?: MaybeRefOrGetter; } export interface RunDownloadOptions { /** [Claude] separates parallel downloads on one page, e.g. a table row id */ key?: unknown; /** [Claude] shows a sticky "in progress" toast with the counter while the download runs */ progress?: DownloadProgress; } export interface UseDownloadActionReturn { isLoading: ComputedRef; isKeyLoading: (key: unknown) => boolean; runDownload: (action: () => Promise, options?: RunDownloadOptions) => Promise; } /** * [Claude] Loader state + success/error toasts around a download. * Errors are reported with a toast and swallowed, so template handlers can call it without `await`. */ export declare const useDownloadAction: () => UseDownloadActionReturn;