export { a as AmountItem, A as ArcaClient, b as ArcaClientConfigView, C as CreditNoteInput, D as DebitNoteInput, F as FceOptions, c as FiscalHeader, I as InvoiceFamily, d as IssuanceFields, e as IssuanceService, f as IssueAmounts, g as IssueCommon, h as IssueInput, i as IssueOptions, j as IssueOutcome, k as IssuePreview, l as IssueRequest, m as IssuedVoucher, n as ItemLine, N as NotePreview, P as PeriodNoteInput, o as PreviewOptions, R as Receiver, p as RecoveryOptions, T as Tribute, V as VatItem, q as VatRate, r as VoucherAmounts, s as VoucherCoordinates, t as VoucherSummary, u as VouchersService, W as WsfeIdentityMatch, v as WsmtxcaIssueRequest, w as WsmtxcaLine, x as createArcaClient, y as matchWsfeVoucherIdentity } from './client-C7lhfLGY.js'; import { h as ArcaEnvironment, a as ArcaClientConfig, i as ArcaStore, j as ArcaWsaaSessionStore } from './types-Su7QwloQ.js'; export { g as ArcaAuthCredentials, f as ArcaAuthOptions, A as ArcaClientConfig, k as ArcaLogLevel, l as ArcaLoggerConfig, m as ArcaPadronServiceName, n as ArcaRepresentedTaxId, b as ArcaServiceName, o as ArcaServiceTarget, e as ArcaWsaaServiceId, p as ArcaWsaaSessionKey } from './types-Su7QwloQ.js'; export { ARCA_FINAL_CONSUMER_IDENTIFICATION_THRESHOLD_MINOR_UNITS, ARCA_INVOICE_CLASS_BY_ISSUER, ARCA_ISSUER_CONDITION_IDS, ARCA_RECEIVER_CONDITION_IDS, IssuerCondition, ReceiverCondition, VoucherClass } from './constants.js'; export { A as ArcaAuthenticationError, a as ArcaAuthenticationErrorOptions, b as ArcaAuthenticationEvidence, c as ArcaAuthenticationReason, d as ArcaAuthorizationIndeterminateReason, e as ArcaAuthorizationOutcome, f as ArcaConfigurationError, g as ArcaError, h as ArcaFiscalIssue, i as ArcaFiscalResultLevel, j as ArcaFiscalResults, k as ArcaFiscalService, l as ArcaInputError, m as ArcaInputErrorCode, n as ArcaInputErrorOptions, o as ArcaInvalidSoapResponseError, p as ArcaSafeErrorMetadata, q as ArcaServiceError, r as ArcaSoapFaultError, s as ArcaTransportError, t as ArcaVoucherLookupResult, u as isArcaAuthenticationError, v as toArcaSafeErrorMetadata } from './fiscal-evidence-DaCyGd5o.js'; export { CreatePadronServiceOptions, PadronService, PadronTax, PadronTaxIdLookupResult, PadronTaxpayerResult, createPadronService } from './padron.js'; export { CreateWsfeServiceOptions, WsfeActivity, WsfeActivityType, WsfeAssociatedPeriod, WsfeAssociatedVoucher, WsfeAuthorizationOutcome, WsfeAuthorizeVoucherInput, WsfeBuyer, WsfeCatalogEntry, WsfeCurrencyType, WsfeDateInput, WsfeOptionalField, WsfeQuotation, WsfeReceiverVatCondition, WsfeSalesPoint, WsfeServerStatus, WsfeService, WsfeTax, WsfeVatRate, WsfeVoucherInfo, WsfeVoucherInput, WsfeVoucherLookupResult, createWsfeService } from './wsfe.js'; export { CreateWsmtxcaServiceOptions, WsmtxcaAuthorizationOutcome, WsmtxcaAuthorizeVoucherInput, WsmtxcaLastAuthorizedVoucherResult, WsmtxcaSalesPoint, WsmtxcaSalesPointsResult, WsmtxcaService, WsmtxcaVoucherInfo, WsmtxcaVoucherLookupOutcome, WsmtxcaVoucherLookupResult, createWsmtxcaService } from './wsmtxca.js'; import './index-DAC3edtw.js'; /** Valid ARCA environment names. */ declare const ARCA_ENVIRONMENTS: readonly ["production", "test"]; /** Default environment variable names read by {@link createArcaClientConfigFromEnv}. */ declare const ARCA_ENV_VARIABLES: { readonly taxId: "ARCA_TAX_ID"; readonly certificatePem: "ARCA_CERTIFICATE_PEM"; readonly privateKeyPem: "ARCA_PRIVATE_KEY_PEM"; readonly environment: "ARCA_ENVIRONMENT"; }; type ArcaClientConfigEnvironment = Record; /** Options for {@link createArcaClientConfigFromEnv}. */ type CreateArcaClientConfigFromEnvOptions = { env?: ArcaClientConfigEnvironment; defaultEnvironment?: ArcaEnvironment; variableNames?: Partial; }; /** Returns `"production"` or `"test"` based on the boolean flag. */ declare function resolveArcaEnvironment(production: boolean): ArcaEnvironment; /** * Builds an {@link ArcaClientConfig} from environment variables. * Reads `process.env` by default; override with `options.env`. * * @throws {ArcaConfigurationError} When required variables are missing or invalid. */ declare function createArcaClientConfigFromEnv(options?: CreateArcaClientConfigFromEnvOptions): ArcaClientConfig; /** * Validates an {@link ArcaClientConfig} and throws if any field is invalid. * * @throws {ArcaConfigurationError} With a list of invalid field names. */ declare function assertArcaClientConfig(config: ArcaClientConfig): void; /** Where every printed voucher's QR points, per ARCA's QR specification v1. */ declare const ARCA_QR_URL = "https://www.arca.gob.ar/fe/qr/"; /** What the QR of a printed voucher encodes. Amounts are minor units. */ type ArcaQrInput = { /** The issuer's CUIT. */ taxId: number | string; salesPoint: number; voucherType: number; number: number; /** `YYYY-MM-DD` or `YYYYMMDD`. */ date: string; /** The total in the voucher's currency, in minor units. */ total: number; /** ARCA currency id; `PES` when omitted. */ currency?: string; /** Pesos per unit of `currency`; 1 for pesos. */ exchangeRate?: number | string; /** The CAE, or the CAEA when `authorization` is `"CAEA"`. */ cae: string; authorization?: "CAE" | "CAEA"; /** The receiver's document. Omitted, or type 99, means an unidentified consumidor final. */ document?: { type: number; number: number | string; }; }; /** The JSON the QR carries, in the field order of ARCA's specification. */ type ArcaQrPayload = { ver: 1; fecha: string; cuit: number; ptoVta: number; tipoCmp: number; nroCmp: number; importe: number; moneda: string; ctz: number; tipoDocRec?: number; nroDocRec?: number; tipoCodAut: "E" | "A"; codAut: number; }; /** Builds the URL a printed voucher's QR must encode. Pure, no I/O. */ declare function arcaQrUrl(input: ArcaQrInput): string; declare function arcaQrPayload(input: ArcaQrInput): ArcaQrPayload; /** Persistent store for a single server with a private durable volume. */ declare function createFileStore(directory: string): ArcaStore; /** In-process store for tests; reservations do not survive a restart. */ declare function createMemoryStore(): ArcaStore; type Row = { key?: string; value?: string; }; /** Uses the caller's SQL client; provision the table before use. */ declare function createPostgresStore({ query, table, }: { query: (text: string, params: string[]) => Promise; table?: string; }): ArcaStore; type RedisClient = { get(key: string): Promise; set(key: string, value: string): Promise; call?(...args: string[]): Promise; del?(key: string): Promise; }; /** Uses ioredis or Upstash without importing either driver. */ declare function createRedisStore(client: RedisClient, options?: { flavor?: "ioredis" | "upstash"; }): ArcaStore; declare function createMemoryWsaaSessionStore(): ArcaWsaaSessionStore; export { ARCA_ENVIRONMENTS, ARCA_ENV_VARIABLES, ARCA_QR_URL, ArcaEnvironment, type ArcaQrInput, type ArcaQrPayload, ArcaStore, ArcaWsaaSessionStore, type CreateArcaClientConfigFromEnvOptions, arcaQrPayload, arcaQrUrl, assertArcaClientConfig, createArcaClientConfigFromEnv, createFileStore, createMemoryStore, createMemoryWsaaSessionStore, createPostgresStore, createRedisStore, resolveArcaEnvironment };