/** * Client for the invoices microservice (Nimi self-issued fiscal documents). * doc/create and doc/cancel are internal-only routes gated to the fixed * JWT_ADMIN service token - always call them with jwt: process.env.JWT_ADMIN. */ export declare class InvoiceClient { /** Create a fiscal document (invoice / receipt / credit note). Idempotent on body.sanity_string. */ createDoc(params: { jwt: string; body: Record; }): Promise; /** Cancel a document by issuing a reversing credit note. */ cancelDoc(params: { jwt: string; body: { sellerId: string; doctype: string; docnum: number; reason?: string; }; }): Promise; /** * Internal: render + store the group-order document PDF (non-fiscal, not PKCS#7-signed). * body = { sellerId, orderId, payload, signatureImageBase64?, logoUrl? }; returns { pdfKey, signatureKey?, pdfUrl }. */ renderGroupOrderPdf(params: { jwt: string; body: Record; }): Promise; /** Internal: presigned (1h) URL for a stored group-order file key; returns { url }. */ getFileUrl(params: { jwt: string; key: string; }): Promise; }