/**
* A hook that provides file download functionality with loading state management.
* Automatically handles blob data, creates download links, and manages cleanup.
*
* @returns An object containing the download function and loading state
*
* @example
* ```tsx
* const { downloadFile, isLoading } = useDownloadFile();
*
* const handleDownload = async () => {
* const response = await fetch('/api/file');
* const blob = await response.blob();
* await downloadFile({
* data: blob,
* fileName: 'document.pdf'
* });
* };
*
* return (
*
* );
* ```
*/
export declare const useDownloadFile: () => {
downloadFile: ({ data, fileName }: {
data: Blob;
fileName?: string;
}) => Promise;
isLoading: boolean;
};
//# sourceMappingURL=useDownloadFile.d.ts.map