import type { AckMessageError, InvokeResponseError } from "../models/messages.js"; /** * Error when sending message failed */ export declare class SendMessageError extends Error { /** * Error name */ name: string; /** * The ack id of the message */ ackId?: number; /** * The error details from the service */ errorDetail?: AckMessageError; /** * Initialize a SendMessageError * @param message - The error message * @param ackMessage - The ack message */ constructor(message: string, options: SendMessageErrorOptions); } export interface SendMessageErrorOptions { /** * The ack id of the message */ ackId?: number; /** * The error details from the service */ errorDetail?: AckMessageError; } export interface InvocationErrorOptions { /** * The invocation id of the request. */ invocationId: string; /** * Error details from the service if available. */ errorDetail?: InvokeResponseError; } /** * Error thrown when an invocation fails or is cancelled. */ export declare class InvocationError extends Error { /** * The invocation id of the request. */ invocationId: string; /** * Error details from the service if available. */ errorDetail?: InvokeResponseError; constructor(message: string, options: InvocationErrorOptions); } //# sourceMappingURL=index.d.ts.map