import type { CheckOutcome } from '../store/FormController.js'; import type { Surface } from '../store/types.js'; /** * A v1.0 `CheckRule` is `{ condition, message? }` where `condition` is a * `DataBinding` or a `FunctionCall`. We accept the loose * `unknown` shape so component props can pass dynamic checks through. */ export interface CheckLike { condition: unknown; /** Fallback when the validation result does not include a message. */ 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; };