UNPKG

@xraph/smartform-react

Version:

React library for rendering and validating SmartForms with shadcn components

23 lines (22 loc) 738 B
import type { TemplateFunction, VariableSuggestion } from "./types"; export declare class VariableRegistry { variables: Map<string, any>; functions: Map<string, TemplateFunction>; constructor(); registerVariable(name: string, value: any): void; getVariable(path: string): { value: any; found: boolean; }; registerFunction(name: string, fn: TemplateFunction): void; getFunction(name: string): { func: TemplateFunction | undefined; found: boolean; }; registerStandardFunctions(): void; generateVariableSuggestions(): VariableSuggestion[]; private _generateNestedSuggestions; private getValueType; private getSampleValue; private getFunctionInfo; }