import { ServiceException } from "@smithy/smithy-client"; export declare class ClientError extends Error { } export declare class DriverClosedError extends Error { } export declare class LambdaAbortedError extends Error { } export declare class SessionPoolEmptyError extends Error { } /** * Is the exception an InvalidParameterException? * @param e The client error caught. * @returns True if the exception is an InvalidParameterException. False otherwise. */ export declare function isInvalidParameterException(e: ServiceException): boolean; /** * Is the exception an InvalidSessionException? * @param e The client error caught. * @returns True if the exception is an InvalidSessionException. False otherwise. */ export declare function isInvalidSessionException(e: ServiceException): boolean; /** * Is the exception because the transaction expired? The transaction expiry is a message wrapped * inside InvalidSessionException. * @param e The client error to check to see if it is an InvalidSessionException due to transaction expiry. * @returns Whether or not the exception is is an InvalidSessionException due to transaction expiry. */ export declare function isTransactionExpiredException(e: ServiceException): boolean; /** * Is the exception an OccConflictException? * @param e The client error caught. * @returns True if the exception is an OccConflictException. False otherwise. */ export declare function isOccConflictException(e: ServiceException): boolean; /** * Is the exception a ResourceNotFoundException? * @param e The client error to check to see if it is a ResourceNotFoundException. * @returns Whether or not the exception is a ResourceNotFoundException. */ export declare function isResourceNotFoundException(e: ServiceException): boolean; /** * Is the exception a ResourcePreconditionNotMetException? * @param e The client error to check to see if it is a ResourcePreconditionNotMetException. * @returns Whether or not the exception is a ResourcePreconditionNotMetException. */ export declare function isResourcePreconditionNotMetException(e: ServiceException): boolean; /** * Is the exception a BadRequestException? * @param e The client error to check to see if it is a BadRequestException. * @returns Whether or not the exception is a BadRequestException. */ export declare function isBadRequestException(e: ServiceException): boolean;