///
export interface IVarUIContext {
values: any;
getValue: (path?: string) => any;
setValue: (path: string, value: any) => void;
getError: (path?: string) => any;
}
export declare const VarUIContext: import("react").Context;
export interface UseVarUIValueOptions {
path?: string;
fallbackValue?: T;
onChange?: (value: T) => void;
errorPath?: string;
error?: string;
}
/**
* Simple function used for custom input components.
* @param path
* @param fallbackValue
* @param onChange
* @returns [value: T, setValue: (value: T) => void]
*/
export declare function useVarUIValue({ path, fallbackValue, onChange, errorPath, error, }: UseVarUIValueOptions): [T, (value: T) => void, string | undefined];