UNPKG

@xraph/smartform-react

Version:

React library for rendering and validating SmartForms with shadcn components

18 lines (17 loc) 565 B
import { type Condition } from "../core"; /** * Evaluates a condition against form data */ export declare const evaluateCondition: (condition: Condition, formState: Record<string, any>) => boolean; /** * Gets a value from a nested object using dot notation */ export declare const getValueByPath: (obj: Record<string, any>, path: string) => any; /** * Checks if a value is empty */ export declare const isEmpty: (value: any) => boolean; /** * Performs a deep equality check between two values */ export declare const deepEqual: (a: any, b: any) => boolean;