export function formValuesEqual(a: any, b: any): any; export function formPath(root: any, path: any): any; /** Resolve once before the state is used by collection, validation or completion. */ export function resolveFormInputs(inputs: any, presets?: {}): any[]; export function formInputApplies(input: any, values?: {}, cargo?: {}, state?: {}): boolean; export function formInputFilled(input: any, state: any, cargo?: {}, checking?: Set): any; export function nextFormInput(state: any, cargo?: {}): any; export function formInputChain(forms: any, id: any, cargo?: {}): any[]; /** Attach the canonical field contract to every claim, including independent ambiguity groups. */ export function enrichFormMatches(matches: any, chain: any, form: any, names?: any[], asked?: string): any; /** Expand inferred controllers before normal ordering/validation. A slot's entry and controllers form one commit unit. */ export function expandFormActivations(cargo: any, hits?: any[]): any[]; /** No partial activation: validation failure suppresses inferred changes; pending prerequisites retain the complete group. */ export function settleFormActivations(batch?: {}, cargo?: null): { ignored: any[]; accepted: any[]; rejected: any[]; pending: any[]; }; /** Explicit ownership: unrelated tasks and sibling inputs never share an instance by definition id. */ export function openFormInstance(cargo: any, definition: any, specs: any, { parent, input, resume, task, providers, questions, context, resume_on_parent_change, incomplete_outcome, on_exhausted }?: { parent?: null | undefined; input?: string | undefined; resume?: string | undefined; task?: string | undefined; providers?: null | undefined; questions?: null | undefined; context?: boolean | undefined; resume_on_parent_change?: undefined; incomplete_outcome?: undefined; on_exhausted?: undefined; }): any; /** An incomplete optional follow-up may preserve an explicitly completed task outcome. */ export function validateFormIncompleteOutcome(value: any): { outcome: any; reason: any; } | null; /** Only actual owned ancestors may provide a fallback; another task's outcome is irrelevant. */ export function formIncompleteOutcome(cargo: any, id: any, fallback?: { outcome: string; reason: string; }): { owner: any; outcome: any; reason: any; } | { owner: string; outcome?: any; reason?: any; }; /** Explicit worker references only; recovery cannot contain an inline effect or caller expression. */ export function validateFormExhaustion(value: any): string; /** Resolve nearest declared owner, release only its exhausted input branch, and withdraw old consent. * A reboot to this worker unwinds the collector; no incomplete value is handed to an ancestor. * Recovery must deliberately collect another choice before resuming the preserved owning draft. */ export function exhaustFormInput(cargo: any, failed_form: any, failed_input?: string): { flow: string; form: any; failed_form: any; input: string; failed_input: string; reason: string; } | null; /** Activation values are queued for the same validator flow as conversational readings. */ export function rememberFormArguments(state: any, supplied: any, names: any, resume?: boolean): any; export function formInitialReadings(state: any, supplied?: {}, cargo?: {}): any; /** One exclusive group is clarified at a time; independent readings continue through the same protocol. */ export function exclusiveFormReadings(cargo: any, hits?: any[]): { ambiguous: any[]; hits: any[]; }; export function orderFormReadings(cargo: any, hits?: any[]): any[]; export function formReadingDependencies(cargo: any, hit: any): any; export function rejectFormReadings(cargo: any, hits?: any[]): boolean; export function proposedFormValues(cargo: any, id: any, accepted?: any[]): any; export function formReadingRelevant(cargo: any, hit: any, accepted?: any[]): boolean; export function formReadingReady(cargo: any, hit: any, accepted?: any[], rejected?: any[]): boolean; export function formPreparation(cargo: any, id: any, input: any): { flow: any; input: any; } | null; export function queueFormReadings(cargo: any, hits?: any[]): boolean; export function pendingFormReadings(cargo: any, id: any): any[]; export function formWorkLimit(cargo: any, id: any): number; export function applyFormValidation(cargo: any, id: any, result: any): "failed" | "valid" | "retry"; /** Invalidation is transitive and independent of declaration order. */ export function invalidateFormInputs(cargo: any, id: any, changed: any, preserve?: any[], preserveNodes?: any[]): any[]; /** An intentional retry resets the named inputs as well as all of their dependent state. Unknown actions stay held. */ export function resetFormInputs(cargo: any, id: any, names?: any[]): boolean; /** Commit only validated readings. Callers batch dependency-related candidates before invoking this transition. */ export function acceptFormReadings(cargo: any, hits: any, additionalCandidates?: any[]): boolean; /** Resolve the outermost stale opted-in context through actual active ownership, without mutation. * An unflagged wrapper must not hide an ancestor whose owner accepted a different field value. * Optional pure ownerWork schedules owned pending work (such as input consent) before the context re-asks. */ export function formParentResume(cargo: any, id: any, explicit?: boolean, ownerWork?: null): { owner: any; child: any; } | null; export function formInstanceApplies(cargo: any, id: any, seen?: Set): any; export function closeFormInstance(cargo: any, id: any, handOn?: boolean): any; export function hasFormValue(v: any): boolean; //# sourceMappingURL=form-state.d.ts.map