type Node = { align: CrossAxis; children: Node[]; fragmentation?: Fragmentation; gap: number; justify: Justify; kind: "vstack"; style: BoxStyle } | { align: CrossAxis; children: Node[]; gap: number; justify: Justify; kind: "hstack"; style: BoxStyle; wrap?: boolean } | { kind: "text"; props: TextProps; text: string } | { kind: "paragraph"; props: ParagraphProps; runs: ParagraphItem[] } | FormFieldNode | { alignSelf?: CrossAxis; height: number; image: PDFImage; kind: "image"; margin?: EdgesInput; width: number } | { alignSelf?: CrossAxis; height: number; image: PDFImage; imageHeight: number; imageWidth: number; kind: "imageBox"; margin?: EdgesInput; offsetX: number; offsetY: number; width: number } | { alignSelf?: CrossAxis; grow?: number; kind: "spacer"; shrink?: number; size: number } | { alignSelf?: CrossAxis; color: RGB; kind: "hline"; margin?: EdgesInput; thickness: number; width?: number } | { alignSelf?: CrossAxis; color: RGB; height?: number; kind: "vline"; margin?: EdgesInput; thickness: number } | { alignSelf?: CrossAxis; child: Node; href: string; kind: "link"; margin?: EdgesInput } | { alignSelf?: CrossAxis; borderColor?: RGB; borderWidth?: number; color?: RGB; d: string; height: number; kind: "svgPath"; margin?: EdgesInput; scale?: number; width: number }