import { HttpResponse, MetadataBearer, ResponseMetadata, RetryableTrait, SmithyException } from "@aws-sdk/types"; /** * The type of the exception class constructor parameter. The returned type contains the properties * in the `ExceptionType` but not in the `BaseExceptionType`. If the `BaseExceptionType` contains * `$metadata` property, it's also included in the returned type. * @internal */ export declare type ExceptionOptionType = Omit>; export interface ServiceExceptionOptions extends SmithyException, MetadataBearer { message?: string; } /** * Base exception class for the exceptions from the server-side. */ export declare class ServiceException extends Error implements SmithyException, MetadataBearer { readonly $fault: "client" | "server"; $response?: HttpResponse; $retryable?: RetryableTrait; $metadata: ResponseMetadata; constructor(options: ServiceExceptionOptions); } /** * This method inject unmodeled member to a deserialized SDK exception, * and load the error message from different possible keys('message', * 'Message'). * * @internal */ export declare const decorateServiceException: (exception: E, additions?: { [key: string]: any; }) => E;