import type { GenericSchema, GenericSchemaAsync, InferIssue, InferOutput, SafeParseResult } from 'valibot'; import { type FormError } from '@conform-to/dom/future'; export declare function formatResult(result: SafeParseResult): FormError | null; export declare function formatResult(result: SafeParseResult, options: { /** @deprecated This option will be removed in the next minor release, when the parsed value will always be included. */ includeValue: true; /** Custom function to format validation issues for each field */ formatIssues: (issues: InferIssue[], name: string) => ErrorShape; }): { error: FormError | null; value: InferOutput | undefined; }; export declare function formatResult(result: SafeParseResult, options: { /** @deprecated This option will be removed in the next minor release, when the parsed value will always be included. */ includeValue: true; formatIssues?: undefined; }): { error: FormError | null; value: InferOutput | undefined; }; export declare function formatResult(result: SafeParseResult, options: { /** @deprecated This option will be removed in the next minor release, when the parsed value will always be included. */ includeValue?: false; formatIssues: (issues: InferIssue[], name: string) => ErrorShape; }): FormError | null; //# sourceMappingURL=format.d.ts.map