import React from 'react'; import type { z, ZodTypeAny } from 'zod'; export type VisualControlValueWithoutUnsaved = { valueInCode: unknown; schema: ZodTypeAny; stack: string; }; export type VisualControlValue = VisualControlValueWithoutUnsaved & { unsavedValue: unknown; }; export type Handles = Record; export type VisualControlsContextType = { handles: Handles; }; export declare const VisualControlsTabActivatedContext: React.Context; export type SetVisualControlsContextType = { updateHandles: () => void; updateValue: (key: string, value: unknown) => void; visualControl: (key: string, value: T, schema?: z.ZodTypeAny) => T; }; export declare const VisualControlsContext: React.Context; export type VisualControlRef = { globalVisualControl: (key: string, value: T, schema?: z.ZodTypeAny) => T; }; export declare const visualControlRef: React.RefObject; export declare const SetVisualControlsContext: React.Context; export declare const VisualControlsProvider: React.FC<{ readonly children: React.ReactNode; }>;