import { MaybeRef, WritableComputedRef, ShallowRef } from 'vue';
import type { PDFSrc } from '@/utils/types';
import type { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api';
declare const useDownload: (src: MaybeRef<PDFSrc>, fileName?: WritableComputedRef<string | undefined, string | undefined>, pdfDocument?: ShallowRef<PDFDocumentProxy | undefined>) => {
    download: () => Promise<void>;
    downloadControl: {
        download: () => void;
        getBlob: () => Promise<{
            blob: Blob;
            filename: string;
        }>;
        onError?: ((error: Error) => void) | undefined;
        onComplete?: (() => void) | undefined;
    };
    loading: import("vue").Ref<boolean, boolean>;
};
export default useDownload;
