import type { FormAtom } from "./formAtom"; /** * Duck-type check for a FormAtom (works across bundle boundaries). */ export declare function isFormAtom(value: unknown): value is FormAtom; /** * Returns `true` when every `FormAtom` inside a nested molecule is valid. * Plain atoms and non-atom data are ignored. * * ≡ `molecule.every(mol, (a) => !isFormAtom(a) || a.isValid)` * * @example * ```ts * const form = { * name: formAtom("", () => [isRequired]), * address: { street: formAtom("", () => [isRequired]) }, * }; * * if (isFormValid(form)) { … } * ``` */ export declare function isFormValid(mol: unknown): boolean; //# sourceMappingURL=isFormValid.d.ts.map