import type { Composable } from '@validup/vue'; import { getSeverity } from '@validup/vue'; import type { ObjectLiteral } from 'validup'; /** * Re-export of `@validup/vue`'s `getSeverity()`: `'error'` when the field is * `$invalid && $dirty`, `'warning'` for pending-but-dirty, `undefined` for * pristine. */ export { getSeverity }; /** * Snapshot the `$model` values of every top-level field in a registered * child composable. Successor to the legacy * `extractVuelidateResultsFromChild` — replaces vuelidate's * `$getResultsForChild` walk with `@validup/vue`'s typed equivalent. * * Returns a plain `Record` for ergonomic spreading into a * parent submit body (`{ ...extract(v, 'basic'), ...extract(v, 'type') }`). * Returns an empty object when the named child is not registered (mirrors * the legacy permissive contract — composing forms that conditionally * mount sub-composables should stay graceful). */ export declare function extractValidupResultsFromChild(composable: Composable, name: string, keys?: string[]): Record; //# sourceMappingURL=validup.d.ts.map