import { StoreKeys } from '@ui-schema/ui-schema/ValueStore'; import { ValidateFn } from '@ui-schema/ui-schema/Validate'; import type { PropsWithChildren } from 'react'; import { Translator } from '@ui-schema/ui-schema/Translator'; import { NextWidgetPlugin } from '@ui-schema/react/WidgetEngine'; import { BindingTypeGeneric } from '@ui-schema/react/Widget'; export interface UIMetaContextInternal extends UIMetaContext { Next: NextWidgetPlugin

; } export interface UIMetaContext extends UIMetaContextBinding, UIMetaContextBase { } export interface UIMetaContextBase { /** * Used to make labels for widgets from `title` schema keyword, error messages from error codes * and more to display understandable text to the user. */ t: Translator; /** * Validator function to use where needed. */ validate?: ValidateFn; /** * If supplied, used by design system to generate `name` attributes on input elements. */ keysToName?: KeysToName; } export type KeysToName = (storeKeys: StoreKeys) => string; export interface UIMetaContextBinding { binding?: W; } export declare function UIMetaProvider({ children, ...props }: PropsWithChildren & Omit, keyof UIMetaContext | 'children'>>): import("react/jsx-runtime").JSX.Element; export declare const useUIMeta: = UIMetaContextInternal>() => C;