import { n as ArcaRepresentedTaxId, a as ArcaClientConfig } from './types-Su7QwloQ.js'; import { W as WsaaAuthModule, S as SoapTransport } from './index-DAC3edtw.js'; import { e as ArcaAuthorizationOutcome, t as ArcaVoucherLookupResult } from './fiscal-evidence-DaCyGd5o.js'; /** Input data for one WSMTXCA voucher authorization. */ type WsmtxcaAuthorizeVoucherInput = { representedTaxId?: ArcaRepresentedTaxId; data: Record; forceRefresh?: boolean; /** Aborts login, submission and consultation with the caller's deadline. */ abortSignal?: AbortSignal; }; /** Structured evidence from one exact WSMTXCA authorization attempt. */ type WsmtxcaAuthorizationOutcome = ArcaAuthorizationOutcome<"wsmtxca">; /** Result of querying the last authorized voucher number. */ type WsmtxcaLastAuthorizedVoucherResult = { voucherNumber: number; raw: Record; }; /** A point of sale enabled for WSMTXCA. */ type WsmtxcaSalesPoint = { number: number; blocked: boolean; deletedAt?: string; }; /** Result of querying WSMTXCA points of sale. */ type WsmtxcaSalesPointsResult = { salesPoints: WsmtxcaSalesPoint[]; raw: Record; }; /** Typed provider fields used to match one exact WSMTXCA voucher. */ type WsmtxcaVoucherInfo = { voucherNumber?: number; invoiceDate?: string; salesPoint?: number; voucherType?: number; concept?: number; documentType?: number; documentNumber?: string; receiverVatConditionId?: number; totalAmount?: number; subtotalAmount?: number; taxableAmount?: number; nonTaxableAmount?: number; exemptAmount?: number; taxAmount?: number; vatAmount?: number; currencyId?: string; exchangeRate?: number; cae?: string; caeExpiry?: string; raw: Record; }; /** Typed exact-voucher consultation result for WSMTXCA. */ type WsmtxcaVoucherLookupOutcome = ArcaVoucherLookupResult; /** Result of looking up a specific WSMTXCA voucher. */ type WsmtxcaVoucherLookupResult = { invoiceDate: string; voucher: Record; messages: string[]; raw: Record; }; /** WSMTXCA electronic invoicing service (Factura de Crédito Electrónica). */ type WsmtxcaService = { /** * Issues one exact voucher: a single autorizarComprobante without transport * retries, returning structured evidence instead of throwing. */ issue(input: WsmtxcaAuthorizeVoucherInput): Promise; /** Returns the last authorized voucher number for the given sales point and type. */ getLastAuthorizedVoucher(input: { representedTaxId?: ArcaRepresentedTaxId; voucherType: number; salesPoint: number; forceRefresh?: boolean; abortSignal?: AbortSignal; }): Promise; /** Returns the points of sale enabled for WSMTXCA. */ getSalesPoints(input: { representedTaxId?: ArcaRepresentedTaxId; forceRefresh?: boolean; }): Promise; /** Consults one exact voucher and normalizes WSMTXCA error 1503 to `not_found`. */ lookupVoucher(input: { representedTaxId?: ArcaRepresentedTaxId; voucherType: number; salesPoint: number; voucherNumber: number; forceRefresh?: boolean; abortSignal?: AbortSignal; }): Promise; /** Retrieves details for a specific voucher. */ getVoucher(input: { representedTaxId?: ArcaRepresentedTaxId; voucherType: number; salesPoint: number; voucherNumber: number; forceRefresh?: boolean; }): Promise; }; type CreateWsmtxcaServiceOptions = { config: ArcaClientConfig; auth: WsaaAuthModule; soap: SoapTransport; }; /** Creates a WSMTXCA service instance wired with authentication and SOAP transport. */ declare function createWsmtxcaService(options: CreateWsmtxcaServiceOptions): WsmtxcaService; export { type CreateWsmtxcaServiceOptions, type WsmtxcaAuthorizationOutcome, type WsmtxcaAuthorizeVoucherInput, type WsmtxcaLastAuthorizedVoucherResult, type WsmtxcaSalesPoint, type WsmtxcaSalesPointsResult, type WsmtxcaService, type WsmtxcaVoucherInfo, type WsmtxcaVoucherLookupOutcome, type WsmtxcaVoucherLookupResult, createWsmtxcaService };