export interface CloneValidationError { path: string; value: unknown; reason: string; suggestion: string; } export interface CloneValidationResult { valid: boolean; errors: CloneValidationError[]; } /** * Validate that a value is cloneable (structuredClone compatible). * Returns errors for non-cloneable values. Reports ALL errors, not just the first. * * @example * ```ts * import { validateCloneable } from '@lostgradient/weft'; * * const safe = validateCloneable({ name: 'Alice', scores: [1, 2, 3] }); * console.log(safe.valid); // true * console.log(safe.errors); // [] * * const unsafe = validateCloneable({ fn: () => 42 }); * console.log(unsafe.valid); // false * console.log(unsafe.errors[0]?.path); // 'fn' * ``` */ export declare function validateCloneable(value: unknown, path?: string): CloneValidationResult;