import { ReceiverCondition } from './constants.js'; import { a as ArcaClientConfig } from './types-Su7QwloQ.js'; import { W as WsaaAuthModule, S as SoapTransport } from './index-DAC3edtw.js'; /** One tax registration reported by the constancia de inscripción. */ type PadronTax = { id: number; description?: string; /** ARCA's state code; `AC` is active. Absent when ARCA omits it. */ state?: string; regime: "general" | "monotributo"; }; /** Result of a taxpayer lookup via Padron A5. */ type PadronTaxpayerResult = { taxId: string; personType?: string; name?: string; /** * The receiver condition to invoice this taxpayer under, derived from its * active IVA registrations: 30 is responsable inscripto, 20 monotributo, 32 * exento and 34 no alcanzado. A taxpayer with none of them is a consumidor * final. Absent when the registrations contradict each other or when the * constancia reports an error, because then they may be missing. */ condition?: ReceiverCondition; taxes: PadronTax[]; raw: Record; }; /** Result of a tax ID lookup by document number via Padron A13. */ type PadronTaxIdLookupResult = { taxIds: string[]; raw: Record; }; /** Padron taxpayer registry service. */ type PadronService = { /** Looks up taxpayer details by CUIT. Returns `null` if the taxpayer does not exist. */ getTaxpayerDetails(taxId: number | string): Promise; /** Looks up CUITs associated with a document number. Returns `null` if not found. */ getTaxIdByDocument(documentNumber: number | string): Promise; }; type CreatePadronServiceOptions = { config: ArcaClientConfig; auth: WsaaAuthModule; soap: SoapTransport; }; /** Creates a Padron service instance wired with authentication and SOAP transport. */ declare function createPadronService(options: CreatePadronServiceOptions): PadronService; export { type CreatePadronServiceOptions, type PadronService, type PadronTax, type PadronTaxIdLookupResult, type PadronTaxpayerResult, createPadronService };