import * as P from '@react-pdf/primitives'; import { SafeStyle, StyleProp } from '@react-pdf/stylesheet'; import { SVGPresentationAttributes, SafeSVGPresentationAttributes, } from './base'; interface PathProps extends SVGPresentationAttributes { style?: SVGPresentationAttributes; d: string; } interface SafePathProps extends SafeSVGPresentationAttributes { style?: SafeSVGPresentationAttributes; d: string; } export type PathNode = { type: typeof P.Path; props: PathProps; style?: StyleProp; box?: never; origin?: never; yogaNode?: never; children?: never[]; }; export type SafePathNode = Omit & { style: SafeStyle; props: SafePathProps; wasSplit: boolean; };