import { ErrorDetail } from "../types/errors";
import { JSONValue } from "../types/json";
/**
 * Formats any error into a consistent structure
 * for logging and error handling
 */
export declare function formatError(error: unknown): ErrorDetail;
export declare function toErrorContext(error: unknown): {
    error: ErrorDetail;
};
export declare function toJSONErrorContext(error: unknown): {
    error: JSONValue;
};
