import { createInvoice, saveInvoice } from "./easyinvoice.js"; import { EasyInvoiceError } from "./error.js"; export { createInvoice, saveInvoice, EasyInvoiceError }; export type * from "./types.js"; /** * Stateless invoice client for server-side Node.js applications. * The methods are also available as named exports from `easyinvoice`. * * @example * import easyinvoice from "easyinvoice"; * * easyinvoice.createInvoice() * .then((result) => console.log(result)) * .catch((error) => console.error(error)); */ declare const easyinvoice: { /** Creates a PDF through the hosted API. See {@link createInvoice} for parameters, errors, and examples. */ createInvoice: typeof createInvoice; /** Streams an invoice's signed PDF URL to a local file. See {@link saveInvoice}. */ saveInvoice: typeof saveInvoice; /** Error class for API and network failures, timeouts, and malformed responses. See {@link EasyInvoiceError}. */ EasyInvoiceError: typeof EasyInvoiceError; }; export default easyinvoice;