import { HttpResponse, type StatusCode, TO_HTTP_RESPONSE, type ToHttpResponse } from "../http/index.js"; /** * `ClientError` represents any error thrown due to issues with client requests. * * This error is generally used by built-in extractors and middleware. You can * check for this error in your own error handler to create responses matching * your own API error format. * * `ClientError` is not extending `Error` on purpose, but instead only * implements it. This allows us to avoid the performance penality of stack * traces on errors which are used for control flow. */ export declare class ClientError implements ToHttpResponse, Error { readonly status: StatusCode; readonly message: string; constructor(status: StatusCode, message: string); get name(): string; [TO_HTTP_RESPONSE](): HttpResponse; }