import { ControlProps, EnumCellProps, JsonFormsSubStates, OwnPropsOfRenderer } from '@jsonforms/core'; import { MantineThemeOverride } from '@mantine/core'; import { PropsWithChildren, ReactNode } from 'react'; export declare const inputWrap: (params?: { initState?: JsonFormsSubStates; theme?: MantineThemeOverride; }) => ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element; /** * Build a Mantine theme that overrides one component name's "component" * default-prop so useContextProps returns a custom React node. Use to exercise * the `Component !== undefined` branch on Mantine input wrappers. * * @param name e.g. 'Text', 'Boolean', 'Date' * @param component the override * @returns Mantine theme object */ export declare const themeWithComponentOverride: (name: string, component: ReactNode) => { focusRing?: "auto" | "always" | "never" | undefined; scale?: number | undefined; fontSmoothing?: boolean | undefined; white?: string | undefined; black?: string | undefined; colors?: { [x: string & {}]: import('@mantine/core').MantineColorsTuple | undefined; dark?: import('@mantine/core').MantineColorsTuple | undefined; gray?: import('@mantine/core').MantineColorsTuple | undefined; red?: import('@mantine/core').MantineColorsTuple | undefined; pink?: import('@mantine/core').MantineColorsTuple | undefined; grape?: import('@mantine/core').MantineColorsTuple | undefined; violet?: import('@mantine/core').MantineColorsTuple | undefined; indigo?: import('@mantine/core').MantineColorsTuple | undefined; blue?: import('@mantine/core').MantineColorsTuple | undefined; cyan?: import('@mantine/core').MantineColorsTuple | undefined; green?: import('@mantine/core').MantineColorsTuple | undefined; lime?: import('@mantine/core').MantineColorsTuple | undefined; yellow?: import('@mantine/core').MantineColorsTuple | undefined; orange?: import('@mantine/core').MantineColorsTuple | undefined; teal?: import('@mantine/core').MantineColorsTuple | undefined; } | undefined; primaryShade?: import('@mantine/core').MantineColorShade | { light?: import('@mantine/core').MantineColorShade | undefined; dark?: import('@mantine/core').MantineColorShade | undefined; } | undefined; primaryColor?: string | undefined; variantColorResolver?: import('@mantine/core').VariantColorsResolver | undefined; autoContrast?: boolean | undefined; luminanceThreshold?: number | undefined; fontFamily?: string | undefined; fontFamilyMonospace?: string | undefined; headings?: { fontFamily?: string | undefined; fontWeight?: string | undefined; textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined; sizes?: { h1?: { fontSize?: string | undefined; fontWeight?: string | undefined; lineHeight?: string | undefined; } | undefined; h2?: { fontSize?: string | undefined; fontWeight?: string | undefined; lineHeight?: string | undefined; } | undefined; h3?: { fontSize?: string | undefined; fontWeight?: string | undefined; lineHeight?: string | undefined; } | undefined; h4?: { fontSize?: string | undefined; fontWeight?: string | undefined; lineHeight?: string | undefined; } | undefined; h5?: { fontSize?: string | undefined; fontWeight?: string | undefined; lineHeight?: string | undefined; } | undefined; h6?: { fontSize?: string | undefined; fontWeight?: string | undefined; lineHeight?: string | undefined; } | undefined; } | undefined; } | undefined; radius?: { [x: string & {}]: string | undefined; xs?: string | undefined; sm?: string | undefined; md?: string | undefined; lg?: string | undefined; xl?: string | undefined; } | undefined; defaultRadius?: import('@mantine/core').MantineRadius | undefined; spacing?: { [x: number]: string | undefined; [x: string & {}]: string | undefined; xs?: string | undefined; sm?: string | undefined; md?: string | undefined; lg?: string | undefined; xl?: string | undefined; } | undefined; fontSizes?: { [x: string & {}]: string | undefined; xs?: string | undefined; sm?: string | undefined; md?: string | undefined; lg?: string | undefined; xl?: string | undefined; } | undefined; lineHeights?: { [x: string & {}]: string | undefined; xs?: string | undefined; sm?: string | undefined; md?: string | undefined; lg?: string | undefined; xl?: string | undefined; } | undefined; fontWeights?: { [x: string & {}]: string | undefined; bold?: string | undefined; regular?: string | undefined; medium?: string | undefined; } | undefined; breakpoints?: { [x: string & {}]: string | undefined; xs?: string | undefined; sm?: string | undefined; md?: string | undefined; lg?: string | undefined; xl?: string | undefined; } | undefined; shadows?: { [x: string & {}]: string | undefined; xs?: string | undefined; sm?: string | undefined; md?: string | undefined; lg?: string | undefined; xl?: string | undefined; } | undefined; respectReducedMotion?: boolean | undefined; cursorType?: "default" | "pointer" | undefined; defaultGradient?: { from?: string | undefined; to?: string | undefined; deg?: number | undefined; } | undefined; activeClassName?: string | undefined; focusClassName?: string | undefined; components?: { [x: string]: { classNames?: any; styles?: any; vars?: any; defaultProps?: any; } | undefined; } | undefined; other?: { [x: string]: any; } | undefined; }; /** * Build a minimal set of props for any MantineInput. Override per-test as needed. */ type BaseInputOverrides = Partial & { schema: ControlProps['schema'] & { contentMediaType?: string | string[]; }; }>; export declare const baseInputProps: (overrides?: BaseInputOverrides) => { errors: string; options?: import('@jsonforms/core').EnumOption[] | undefined; label: string; data: any; path: string; description: string; uischema: import('@jsonforms/core').ControlElement | { type: string; scope: string; }; required: boolean; id?: string | undefined; i18nKeyPrefix?: string | undefined; visible: boolean; enabled: boolean; cells?: ({ tester: import('@jsonforms/core').RankedTester; cell: any; }[] & import('@jsonforms/core').JsonFormsCellRendererRegistryEntry[]) | undefined; rootSchema?: import('@jsonforms/core').JsonSchema | undefined; config?: any; renderers?: import('@jsonforms/core').JsonFormsRendererRegistryEntry[] | undefined; handleChange: (path: string, value: any) => void; isValid?: boolean | undefined; uischemas?: import('@jsonforms/core').JsonFormsUISchemaRegistryEntry[] | undefined; schema: ControlProps["schema"] & { contentMediaType?: string | string[]; }; }; export {};