/** * Custom error class for WASI http interface that properly formats payload for Jco compatibility * * https://bytecodealliance.github.io/jco/wit-type-representations.html#result-considerations-idiomatic-js-errors-for-host-implementations */ export declare class HttpError extends Error { payload: any; /** * Create a new WASI http error * @param {string} tag - The error tag/type * @param {string} [message] - Human-readable error message * @param {any} [val] - Optional value/data for the error */ constructor(tag: any, message?: any, val?: any, opts?: { cause?: unknown; }); static from(err: any): HttpError; }