import { StandardSchemaV1 } from "./types.mjs"; import { ValidationResult } from "../types/result-types.mjs"; //#region ../@warlock.js/seal/src/standard-schema/map-result.d.ts /** * Maps a Seal ValidationResult to a Standard Schema result shape. * * Seal error paths are dot-notation strings (e.g. "address.city"). * Standard Schema expects an array of path segments: [{ key: "address" }, { key: "city" }]. * * @example * ```ts * const result = await validator.validate(value, context); * return mapToStandardResult(result); * // Success → { value: } * // Failure → { issues: [{ message: "...", path: [{ key: "..." }] }] } * ``` */ declare function mapToStandardResult(result: ValidationResult): StandardSchemaV1.Result; //#endregion export { mapToStandardResult }; //# sourceMappingURL=map-result.d.mts.map