import type { Promisable } from 'type-fest'; type DownloadTextOptions = { blobType: 'text/csv' | 'text/plain'; }; type DownloadBlobOptions = { blobType: 'application/zip' | 'image/jpeg' | 'image/png' | 'image/webp'; }; interface DownloadFunction { (filename: string, data: Blob, options: DownloadBlobOptions): Promise; (filename: string, data: () => Promisable, options: DownloadBlobOptions): Promise; (filename: string, data: string, options?: DownloadTextOptions): Promise; (filename: string, data: () => Promisable, options?: DownloadTextOptions): Promise; } /** * Used to trigger downloads of arbitrary data to the client * @returns A function to invoke the download */ export declare function useDownload(): DownloadFunction; export {}; //# sourceMappingURL=useDownload.d.ts.map