/** * Returns a safe, bounded string representation of an error for logging. * inspect() handles everything internally: circular references, throwing * getters, frozen objects, huge nested data. No manual field extraction needed. */ export declare function sanitizeError(error: unknown, maxLength?: number): string; /** * Truncates unknown data to a safe size. * Use for FetchError.data assignment to prevent huge RPC payloads * from being attached to error objects. */ export declare function sanitizeErrorData(data: unknown, maxLength?: number): unknown; /** * Mutates the error object in place, truncating heavy fields. * Preserves the original error type (instanceof checks still work). * Use for error objects that are thrown to consumers (e.g. AllProvidersFailedError.cause). */ export declare function sanitizeErrorInPlace(error: unknown, maxLength?: number, /** @internal tracks visited objects to prevent circular-reference stack overflow */ _seen?: WeakSet): void;