import type { CheckOutcome } from '../store/FormController.js'; import type { Surface } from '../store/types.js'; /** * A v0.9 `CheckRule` is `{ condition, message }` where `condition` is a * boolean, a `DataBinding`, or a `FunctionCall`. We accept the loose * `unknown` shape so component props don't have to import the v0_9 * types just to pass them through. */ export interface CheckLike { condition: unknown; message: string; } /** * Evaluate an input component's `checks` array reactively. Returns the * current outcome plus the first failure message (handy for inline error * rendering). When an enclosing `` exists, the input * is also registered with it so Buttons in the same form can react to * `isValid`. */ export declare function useChecks(options: { checks: CheckLike[] | undefined; componentId: string; surface: Surface | undefined; dataContextPath?: string | undefined; }): CheckOutcome & { firstFailureMessage: string | undefined; };