node-zugferd
Version:
A Node.js library for creating ZUGFeRD/Factur-X compliant documents. Generating XML and embedding it into PDF/A files, enabling seamless e-invoicing and digital document compliance.
18 lines (14 loc) • 716 B
text/typescript
import { Z as ZugferdOptions, a as ZugferdContext, c as createDocumentFactory, b as ProfileValidateHandler, U as UnionToIntersection, d as ZugferdPlugin } from './index-Blt7_sat.cjs';
import 'zod';
import 'pdf-lib';
import 'fast-xml-parser';
declare const zugferd: <O extends ZugferdOptions>(options: O) => {
context: ZugferdContext;
create: ReturnType<typeof createDocumentFactory<O>>;
validate: ProfileValidateHandler;
} & UnionToIntersection<O["plugins"] extends (infer T)[] ? T extends ZugferdPlugin ? ReturnType<T> : {} : {}>;
declare class ZugferdError extends Error {
code: string;
constructor(code: string, message: string, options?: ErrorOptions);
}
export { ZugferdError, zugferd };