import { 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'; /** Accepted public date inputs for WSFE request fields. */ type WsfeDateInput = `${number}${number}${number}${number}-${number}${number}-${number}${number}` | `${number}${number}${number}${number}${number}${number}${number}${number}`; /** An associated voucher referenced by a WSFE invoice request. */ type WsfeAssociatedVoucher = { type: number; salesPoint: number; number: number; taxId?: string; voucherDate?: WsfeDateInput; }; /** An associated period used by WSFE credit/debit notes without associated vouchers. */ type WsfeAssociatedPeriod = { startDate: WsfeDateInput; endDate: WsfeDateInput; }; /** A tax (tributo) item in a WSFE invoice request. */ type WsfeTax = { id: number; description?: string; baseAmount: number; rate: number; amount: number; }; /** A VAT rate (alĂ­cuota IVA) item in a WSFE invoice request. */ type WsfeVatRate = { id: number; baseAmount: number; amount: number; }; /** An optional field (campo opcional) in a WSFE invoice request. */ type WsfeOptionalField = { id: string; value: string; }; /** A buyer (comprador) in a WSFE invoice request. */ type WsfeBuyer = { documentType: number; documentNumber: number; percentage: number; }; /** An activity associated with a WSFE invoice request. */ type WsfeActivity = { id: number; }; /** Input data for authorizing a WSFE voucher. */ type WsfeVoucherInput = { salesPoint: number; voucherType: number; concept: number; documentType: number; documentNumber: number; receiverVatConditionId: number; voucherDate: WsfeDateInput; totalAmount: number; nonTaxableAmount: number; netAmount: number; exemptAmount: number; taxAmount: number; vatAmount: number; currencyId: string; exchangeRate?: number | string; sameCurrencyForeignCancellation?: "S" | "N"; serviceStartDate?: WsfeDateInput; serviceEndDate?: WsfeDateInput; paymentDueDate?: WsfeDateInput; associatedVouchers?: WsfeAssociatedVoucher[]; associatedPeriod?: WsfeAssociatedPeriod; taxes?: WsfeTax[]; vatRates?: WsfeVatRate[]; optionalFields?: WsfeOptionalField[]; buyers?: WsfeBuyer[]; activities?: WsfeActivity[]; }; /** Input for authorizing a WSFE voucher with an explicit voucher number. */ type WsfeAuthorizeVoucherInput = { representedTaxId?: number | string; data: WsfeVoucherInput; voucherNumber: number; forceRefresh?: boolean; /** Aborts login, submission and consultation with the caller's deadline. */ abortSignal?: AbortSignal; }; /** Structured evidence from one exact WSFE authorization attempt. */ type WsfeAuthorizationOutcome = ArcaAuthorizationOutcome<"wsfe">; /** A point-of-sale entry returned by {@link WsfeService.getSalesPoints}. */ type WsfeSalesPoint = { number: number; emissionType?: string; blocked?: string; deletedSince?: string; }; /** Voucher details returned by {@link WsfeService.getVoucherInfo}. */ type WsfeVoucherInfo = { voucherNumber: number; voucherDate?: string; salesPoint?: number; voucherType?: number; concept?: number; documentType?: number; documentNumber?: string; receiverVatConditionId?: number; totalAmount?: number; nonTaxableAmount?: number; netAmount?: number; exemptAmount?: number; taxAmount?: number; vatAmount?: number; currencyId?: string; exchangeRate?: number; result?: string; cae?: string; caeExpiry?: string; vatRates?: WsfeVatRate[]; serviceStartDate?: string; serviceEndDate?: string; paymentDueDate?: string; taxes?: WsfeTax[]; associatedVouchers?: WsfeAssociatedVoucher[]; associatedPeriod?: WsfeAssociatedPeriod; optionalFields?: WsfeOptionalField[]; buyers?: WsfeBuyer[]; activities?: WsfeActivity[]; sameCurrencyForeignCancellation?: "S" | "N"; raw: Record; }; /** Typed exact-voucher consultation result for WSFE. */ type WsfeVoucherLookupResult = ArcaVoucherLookupResult; type WsfeCatalogEntry = { id: number; description: string; }; type WsfeActivityType = WsfeCatalogEntry & { order: number; }; type WsfeReceiverVatCondition = WsfeCatalogEntry & { voucherClass: string; }; type WsfeCurrencyType = { id: string; description: string; validFrom: string; validTo: string; }; type WsfeServerStatus = { appServer: string; dbServer: string; authServer: string; }; type WsfeQuotation = { currencyId: string; rate: number; date: string; }; /** WSFE electronic invoicing service. */ type WsfeService = { /** * Issues one exact voucher: a single FECAESolicitar for the caller-owned * `voucherNumber`, without transport retries, returning structured evidence * (`authorized`, `rejected` or `indeterminate`) instead of throwing. */ issue(input: WsfeAuthorizeVoucherInput): Promise; /** Returns the next available voucher number for the given sales point and type. */ getNextVoucherNumber(input: { representedTaxId?: number | string; salesPoint: number; voucherType: number; forceRefresh?: boolean; abortSignal?: AbortSignal; }): Promise; /** Lists all configured points of sale for the taxpayer. */ getSalesPoints(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists voucher types accepted by WSFE. */ getVoucherTypes(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists document types accepted by WSFE. */ getDocumentTypes(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists concept types accepted by WSFE. */ getConceptTypes(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists live ARCA currency identifiers such as PES and DOL, not ISO codes. */ getCurrencyTypes(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists VAT rates accepted by WSFE. */ getVatRates(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists tax types accepted by WSFE. */ getTaxTypes(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists optional field types accepted by WSFE. */ getOptionalTypes(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists activities enabled for the taxpayer. */ getActivities(input: { representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Lists receiver VAT condition values accepted by WSFE. */ getReceiverVatConditions(input: { representedTaxId?: number | string; voucherClass?: string; forceRefresh?: boolean; }): Promise; /** Reports WSFE backend status without requiring taxpayer authorization. */ getServerStatus(): Promise; /** Returns the exchange rate for a given currency. */ getQuotation(input: { currencyId: string; representedTaxId?: number | string; forceRefresh?: boolean; }): Promise; /** Retrieves details for a specific voucher. Returns `null` if not found. */ getVoucherInfo(input: { representedTaxId?: number | string; number: number; salesPoint: number; voucherType: number; forceRefresh?: boolean; }): Promise; /** Consults one exact voucher and normalizes WSFE error 602 to `not_found`. */ lookupVoucher(input: { representedTaxId?: number | string; number: number; salesPoint: number; voucherType: number; forceRefresh?: boolean; abortSignal?: AbortSignal; }): Promise; }; type CreateWsfeServiceOptions = { config: ArcaClientConfig; auth: WsaaAuthModule; soap: SoapTransport; }; /** Creates a WSFE service instance wired with authentication and SOAP transport. */ declare function createWsfeService(options: CreateWsfeServiceOptions): WsfeService; export { type CreateWsfeServiceOptions, type WsfeActivity, type WsfeActivityType, type WsfeAssociatedPeriod, type WsfeAssociatedVoucher, type WsfeAuthorizationOutcome, type WsfeAuthorizeVoucherInput, type WsfeBuyer, type WsfeCatalogEntry, type WsfeCurrencyType, type WsfeDateInput, type WsfeOptionalField, type WsfeQuotation, type WsfeReceiverVatCondition, type WsfeSalesPoint, type WsfeServerStatus, type WsfeService, type WsfeTax, type WsfeVatRate, type WsfeVoucherInfo, type WsfeVoucherInput, type WsfeVoucherLookupResult, createWsfeService };