import * as P from '@react-pdf/primitives'; import { SafeStyle, StyleProp } from '@react-pdf/stylesheet'; import { YogaNode } from 'yoga-layout/load'; import { Box, FormCommonProps, Origin } from './base'; interface SelectAndListProps extends FormCommonProps { sort?: boolean; edit?: boolean; multiSelect?: boolean; noSpell?: boolean; select?: string[]; } export type SelectNode = { type: typeof P.Select; props: SelectAndListProps; style?: StyleProp; box?: Box; origin?: Origin; yogaNode?: never; children?: never[]; }; export type SafeSelectNode = Omit & { style: SafeStyle; wasSplit: boolean; }; export type ListNode = { type: typeof P.List; props: SelectAndListProps; style?: StyleProp; box?: Box; origin?: Origin; yogaNode?: YogaNode; children?: never[]; }; export type SafeListNode = Omit & { style: SafeStyle; wasSplit: boolean; };