index.ts
1 import type { PDFFont, PDFPage } from "@cantoo/pdf-lib"; 2 import type { Node } from "yoga-layout"; 3 import type { MemoryFont } from "~/utils/fonts"; 4 5 export interface Element { 6 draw: (page: PDFPage, fonts: Map<MemoryFont, PDFFont>) => void; 7 getLayoutNode: (page: PDFPage, fonts: Map<MemoryFont, PDFFont>) => Node; 8 }