invoice-craft
Version:
Customizable, browser-first invoice PDF generator library with modern TypeScript API
34 lines (33 loc) • 1.05 kB
TypeScript
import type { InvoiceTemplate } from "../core/types";
/**
* Register a new template in the registry
*/
export declare function registerTemplate(template: InvoiceTemplate): void;
/**
* Get a template by ID
*/
export declare function getTemplateById(templateId: string): InvoiceTemplate | undefined;
/**
* Get all available templates
*/
export declare function getAvailableTemplates(): InvoiceTemplate[];
/**
* Get templates by category
*/
export declare function getTemplatesByCategory(category: string): InvoiceTemplate[];
/**
* Default template - extracted from current pdfmake.ts implementation
*/
export declare const defaultTemplate: InvoiceTemplate;
/**
* Modern template - clean, contemporary design with better spacing
*/
export declare const modernTemplate: InvoiceTemplate;
/**
* Minimal template - ultra-clean design with maximum white space
*/
export declare const minimalTemplate: InvoiceTemplate;
/**
* Creative template - bold design with creative layout and colors
*/
export declare const creativeTemplate: InvoiceTemplate;