import React from 'react'; import { onChangeHandler, UIStoreType } from '@ui-schema/ui-schema/UIStore'; import { UIStoreActionsContext, UIStoreActions } from '@ui-schema/ui-schema/UIStoreActions'; export interface UIStoreContext { store: UIStoreType | undefined; showValidity?: boolean; } export declare const UIConfigProvider: React.ComponentType>; export declare function UIStoreProvider({ children, showValidity, onChange, store, ...props }: React.PropsWithChildren & UIStoreActionsContext & C>): React.ReactElement; /** * @deprecated */ export declare const useUI: () => UIStoreContext; export declare const useUIStore: () => UIStoreContext; export declare function useUIConfig(): C; export interface WithOnChange { onChange: onChangeHandler; } export interface WithValue { value: any | undefined; internalValue: any | undefined; showValidity?: UIStoreContext['showValidity']; onChange: onChangeHandler; } export interface WithScalarValue { value: string | number | boolean | undefined | null; internalValue: any; showValidity?: UIStoreContext['showValidity']; onChange: onChangeHandler; } export interface WithValidity { validity: any; onChange: onChangeHandler; showValidity?: UIStoreContext['showValidity']; }