/** Resolve the SOAP endpoint. ARIREG_XML_URL wins; else ARIREG_XML_ENV=test|prod (default prod). */ export declare function resolveAriregXmlUrl(env?: NodeJS.ProcessEnv): string; export interface AriregXmlCredentials { username: string; password: string; } /** * Resolve äriregister XML credentials from the environment (hydrated from the same * ~/.config/elnora-merit/.env used for Merit keys). Returns null when absent — the * caller decides whether the specific service requires them. */ export declare function resolveAriregXmlCredentials(env?: NodeJS.ProcessEnv): AriregXmlCredentials | null; export interface AriregRequisites { regCode: string; name: string; vatNo: string | null; status: string; statusText: string; address: { street: string | null; ehakCode: string | null; ehakText: string | null; postalIndex: string | null; }; registryLink: string | null; } export interface RequisitesOptions { /** Include deleted (kustutatud) companies in the search. Default false. */ includeDeleted?: boolean; /** Response language for status text: "est" (default) or "eng". */ language?: "est" | "eng"; url?: string; env?: NodeJS.ProcessEnv; } /** * Look up a single company's invoicing requisites by registry code via the FREE * ettevotjaRekvisiidid_v1 service. Requires äriregister XML credentials. * Returns null when the code matches no company. */ export declare function lookupRequisites(regCode: string, opts?: RequisitesOptions): Promise; export interface EInvoiceStatus { regCode: string; /** OK = has an active e-invoice relationship; MR = not found / invalid / no active relationship. */ status: "OK" | "MR" | string; canReceiveEInvoice: boolean; name: string | null; provider: string | null; } export interface EInvoiceCheckOptions { url?: string; env?: NodeJS.ProcessEnv; } /** * Check whether one or more registry codes can receive e-invoices via the FREE * earveRegistriParing_v1 service. This is a no-contract service, so it is called * without credentials. Always returns one row per requested code; a code with no * active relationship comes back with status "MR". */ export declare function checkEInvoice(regCodes: string[], opts?: EInvoiceCheckOptions): Promise;