import { configureCoercion as baseConfigureCoercion } from './coercion'; export { formatResult } from './format'; export { isSchema, getConstraints } from './schema'; export declare function configureCoercion(config?: Parameters[0]): ReturnType; /** * Enhances a schema to coerce form values and strip empty values before validation. * Use `configureCoercion` to override empty-string handling and type-specific coercion. * * Results are cached per schema, so this can be called inline. * * **Example:** * * ```tsx * import { coerceFormValue } from '@conform-to/valibot/future'; * import * as v from 'valibot'; * * const schema = coerceFormValue(v.object({ * age: v.optional(v.number()), * subscribe: v.boolean(), * })); * * v.parse(schema, { age: '', subscribe: 'on' }); * // { age: undefined, subscribe: true } * ``` */ export declare const coerceFormValue: (type: Schema) => Schema extends import("valibot").GenericSchemaAsync ? import("valibot").GenericSchemaAsync, import("valibot").InferOutput> : import("valibot").GenericSchema, import("valibot").InferOutput>; /** * Enhances a schema to coerce form values without running validation. * This is useful for reading current form values as typed data. * * It skips validation, defaults, transforms, and refinements, and does not strip * empty strings to `undefined`. * * For number, boolean, date, and bigint schemas, empty strings and other failed * string coercions still become fallback values: * * - `v.number()` -> `NaN` * - `v.boolean()` -> `false` * - `v.date()` -> `Invalid Date` * - `v.bigint()` -> `0n` * * Use `configureCoercion` to override type-specific coercion. * * Results are cached per schema, so this can be called inline. * * **Example:** * * ```tsx * import { coerceStructure } from '@conform-to/valibot/future'; * import * as v from 'valibot'; * * const schema = coerceStructure(v.object({ * age: v.pipe(v.number(), v.minValue(10)), * })); * * v.parse(schema, { age: '3' }); * // { age: 3 } * ``` */ export declare const coerceStructure: (type: Schema) => Schema extends import("valibot").GenericSchemaAsync ? import("valibot").GenericSchemaAsync, import("valibot").InferInput, import("valibot").BaseIssue> : import("valibot").GenericSchema, import("valibot").InferInput, import("valibot").BaseIssue>; //# sourceMappingURL=future.d.ts.map