/** * Convert an `Error` (or any value with a `toJSON()` method) into a * plain object suitable for embedding in a JSON response body. * * Calls `input.toJSON()` if present — preserves every attribute the * error chose to surface (`code`, `cause`, `errors`, `issues`, `data`, * AuthupError sub-class fields, ...). Falls back to spreading the * Error's enumerable own properties alongside the standard * `name` / `message` pair, so caller-attached fields survive. * * Pair with `normalizeError` to handle arbitrary thrown values: * `serializeError(normalizeError(e))`. */ export declare function serializeError(input: Error): Record; //# sourceMappingURL=serialize.d.ts.map