/** * Represents an API error * * @remarks * If the error originates from the Chat API, the code and type property will be present. * * @public */ export declare class ApiError extends Error { /** The error message. */ message: string; /** The request status code */ statusCode?: number; /** The internal API error code. */ apiCode?: number; /** The internal API error type. */ type?: string; /** @internal */ constructor(message: string, statusCode?: number, apiCode?: number, type?: string); }