export interface DownloadFileResult { fileName: string; contentType: string; contentBase64: string; } /** * Shared body for the 8 `lexware_download_*` tools: fetches the file, applies * the fallback name, and base64-encodes the payload. * * `fallbackName` is a literal for PDF-only tools, or a function of the * resolved `contentType` for XML-capable voucher and generic file downloads. * The fallback uses `||`, not * `??` — an empty-string `fileName` from the API must still fall through, not * just a missing one. * * `accept` is only forwarded to `lexwareDownload` when the caller passes one: * the PDF-only tools call it with a single argument, matching `lexwareDownload`'s * own `application/pdf` default and the exact call arity existing tests assert. */ export declare function downloadFileResult(path: string, fallbackName: string | ((contentType: string) => string), accept?: string): Promise;