/** * Trigger a browser file download by navigating to a URL. * Pass an optional filename to override the name suggested by the server or URL. * For Blob-based downloads, use `downloadBlob()` instead. */ export declare function downloadViaUrl(url: string, filename?: string): void; /** * Trigger a browser file download from a Blob. * Creates a temporary object URL, triggers the download, then revokes the URL. */ export declare function downloadBlob(blob: Blob, filename: string): void;