import client = require("./index.mjs"); import type { EasyInvoiceError as EasyInvoiceErrorClass } from "./error.js"; import type * as types from "./types.js"; /** * Stateless invoice client for server-side Node.js applications using CommonJS. * * @example * import easyinvoice = require("easyinvoice"); * * easyinvoice.createInvoice() * .then((result) => console.log(result)) * .catch((error) => console.error(error)); */ declare const easyinvoice: typeof client.default; declare namespace easyinvoice { /** API, network, timeout, or response-validation failure. See {@link EasyInvoiceErrorClass}. */ type EasyInvoiceError = EasyInvoiceErrorClass; /** HTTP response details and underlying cause for an error. See {@link types.EasyInvoiceErrorOptions}. */ type EasyInvoiceErrorOptions = types.EasyInvoiceErrorOptions; /** Contact details printed in an invoice address block. See {@link types.InvoiceSenderOrClient}. */ type InvoiceSenderOrClient = types.InvoiceSenderOrClient; /** Product or service line item with quantity, price, and tax rate. See {@link types.InvoiceProduct}. */ type InvoiceProduct = types.InvoiceProduct; /** Currency, number formatting, and page layout options. See {@link types.InvoiceSettings}. */ type InvoiceSettings = types.InvoiceSettings; /** Base64-encoded invoice logo and background artwork. See {@link types.InvoiceImages}. */ type InvoiceImages = types.InvoiceImages; /** Replacement text for the invoice's printed labels. See {@link types.InvoiceTranslations}. */ type InvoiceTranslations = types.InvoiceTranslations; /** Invoice identifier and dates formatted for display. See {@link types.InvoiceInformation}. */ type InvoiceInformation = types.InvoiceInformation; /** Invoice payload sent to the API for validation and calculation. See {@link types.InvoiceData}. */ type InvoiceData = types.InvoiceData; /** Custom HTML template options. See {@link types.InvoiceCustomizations}. */ type InvoiceCustomizations = types.InvoiceCustomizations; /** Rounded invoice amounts calculated by the API. See {@link types.InvoiceCalculations}. */ type InvoiceCalculations = types.InvoiceCalculations; /** Subtotal, tax amount, and total for one line item. See {@link types.ProductCalculations}. */ type ProductCalculations = types.ProductCalculations; /** Tax amounts grouped by percentage rate. See {@link types.TaxCalculations}. */ type TaxCalculations = types.TaxCalculations; /** Returned PDF URL, expiry, calculations, and additional server fields. See {@link types.CreateInvoiceResult}. */ type CreateInvoiceResult = types.CreateInvoiceResult; /** Explicit base64 PDF output with calculations. */ type CreateInvoiceBase64Result = types.CreateInvoiceBase64Result; /** Client-side URL or base64 output selection. */ type CreateInvoiceOptions = types.CreateInvoiceOptions; } export = easyinvoice;