import { Logger } from '@sudoplatform/sudo-common'; import { GraphQLError } from 'graphql'; export declare const GRAPHQL_ERROR_SUDO_NOT_FOUND = "sudoplatform.sudo.SudoNotFound"; export declare const GRAPHQL_ERROR_INSUFFICIENT_ENTITLEMENTS_ERROR = "sudoplatform.InsufficientEntitlementsError"; export declare const GRAPHQL_ERROR_CONDITIONAL_CHECK_FAILED = "DynamoDB:ConditionalCheckFailedException"; export declare const GRAPHQL_ERROR_SERVER_ERROR = "sudoplatform.sudo.ServerError"; /** * Error when Symmetric key not found in KeyStore */ export declare class SymmetricKeyNotFoundError extends Error { constructor(); } /** * Error when the encrypted payload is invalid. */ export declare class InvalidEncryptedDataError extends Error { constructor(); } export declare class SudoNotFoundError extends Error { constructor(); } /** * Error thrown when deleteSudo API is called without initializing the list query * cache. Delete API relies on cached information to remove all the data related * to a Sudo so it must be called after calling listSudos API to initialize the * query and blob cache. The listSudos API is required to be called only once * at any time during the lifetime of the client. Typically, this is already done * since in order to delete a Sudo you need to retrieve its ID via listSudos. */ export declare class SudoNotFoundInCacheError extends Error { constructor(); } /** * Error when uploading a file to S3 */ export declare class S3UploadError extends Error { constructor(message: string); } /** * Error when file not downloaded from S3 */ export declare class S3DownloadError extends Error { constructor(message: string); } /** * Error when trying to delete a file from S3 */ export declare class S3DeleteError extends Error { constructor(message: string); } /** * Indicates that Sudo Service is not deployed into your runtime instance or the config * file that you are using is invalid. */ export declare class SudoServiceConfigNotFoundError extends Error { constructor(message?: string); } /** * Indicates that the configuration that was passed to `SudoProfilesClient` instance * was invalid. */ export declare class InvalidConfigError extends Error { constructor(message?: string); } export declare function graphQLErrorsToClientError(error: { errorType: string; } | GraphQLError, logger: Logger): Error;