/** * `download` is ignored cross-origin, where a plain link navigates the app away instead. Fetching * the bytes and handing the browser a blob url saves under the right name wherever the file lives. */ export declare const downloadAttachment: (url: string, fileName: string) => Promise; /** Stored data, not a literal: an unchecked `javascript:` url would run on open. */ export declare const openAttachmentInNewTab: (url: string) => void; /** Saves the file, falling back to a tab when the bytes cannot be read. */ export declare const saveAttachment: (url: string, fileName: string) => Promise; //# sourceMappingURL=downloadAttachment.d.ts.map