import type { HttpClient } from './http.js'; export interface FetchUpoParams { accessToken: string; sessionReferenceNumber: string; ksefNumber: string; } /** * Fetches the UPO (Urzędowe Poświadczenie Odbioru) XML for an invoice * via `GET /sessions/{referenceNumber}/invoices/ksef/{ksefNumber}/upo`. * * Returns the raw UPO XML string. Throws `KsefApiError` with code 21178 * when the UPO is not yet available (invoice still being processed). */ export declare function fetchUpoXml(http: HttpClient, params: FetchUpoParams): Promise; /** * Fetches the invoice status from the session, which includes the * `upoDownloadUrl` pre-signed URL when the UPO is ready. * * Uses `GET /sessions/{referenceNumber}/invoices/{invoiceReferenceNumber}`. */ export declare function fetchInvoiceStatus(http: HttpClient, params: { accessToken: string; sessionReferenceNumber: string; invoiceReferenceNumber: string; }): Promise; export declare function upoStatusFromCode(code: number | undefined): 'confirmed' | 'pending' | 'rejected'; export interface InvoiceStatusResult { ksefNumber?: string; statusCode: number | undefined; statusDescription?: string; upoDownloadUrl?: string; permanentStorageDate?: string; } //# sourceMappingURL=upo.d.ts.map