import { attachmentsService } from '../apps'; export declare const SUBMISSION_PDF_NOT_READY_CONFLICT = "SUBMISSION_NOT_READY"; export declare class SubmissionPdfNotReadyError extends Error { constructor(message: string); } export declare function downloadSubmissionPdf(url: string, fileName: string): Promise; export declare function reportDownloadError(error?: Error): void; export declare function downloadFileLegacy(dataURI: string, fileName: string): Promise; export default function downloadAttachment(attachment: attachmentsService.Attachment): Promise;