import type { MeritClient } from "../client/merit-client.js"; import type { MissingDoc } from "./types.js"; /** Read a local PDF as base64 (Merit validates the base64 server-side). */ export declare function readPdfBase64(path: string): { fileName: string; base64: string; }; /** Safe path: copy the matched file into a staging folder for a manual UI upload. */ export declare function stageForUpload(missing: MissingDoc, docPath: string, outDir: string): string; /** * Opt-in: delete a purchase invoice and recreate it with the attachment. * Guards: purchase invoices only; refuses a paid or multi-payment invoice unless * `force` (recreating drops the payment link — the caller must re-book it). * Reconstructs the create body from the v2 detail; faithful for the common * single-line, single-currency travel/SaaS receipt, which is exactly the backlog. */ export declare function rebookPurchaseInvoiceWithAttachment(client: MeritClient, missing: MissingDoc, pdf: { fileName: string; base64: string; }, opts?: { force?: boolean; }): Promise<{ oldId: string; newId: string; }>;