import { ValidationError } from "../errors/index.mjs"; //#region src/core/resolve/errors.d.ts /** Type-narrowing guard that asserts a readonly array has at least one element. */ declare function isNonEmpty(arr: readonly T[]): arr is readonly [T, ...T[]]; /** Flatten an aggregate validation error's nested `details.errors` into individual errors, or return the original as a singleton. */ declare function collectValidationErrors(error: ValidationError): readonly ValidationError[]; /** Throw a single error if one, or an aggregate with per-issue summaries if many. */ declare function throwAggregatedErrors(errors: readonly [ValidationError, ...ValidationError[]]): never; //#endregion export { collectValidationErrors, isNonEmpty, throwAggregatedErrors };