import { Auth } from '../Auth/Auth.js'; import type { Config, Options } from '../types/interfaces/enft.interface.js'; export declare enum ErrorCode { NETWORK = "[NETWORK.ERROR]", RUNTIME = "[RUNTIME.ERROR]", API = "[API.ERROR]", ABI = "[ABI.ERROR]", INVALID_ARGUMENT = "INVALID_ARGUMENT", MISSING_ARGUMENT = "MISSING_ARGUMENT", UNEXPECTED_ARGUMENT = "UNEXPECTED_ARGUMENT", UNKNOWN_TOKEN_TYPE = "UNKNOWN_TOKEN_TYPE", UNSUPPORTED_TRANSACTION = "UNSUPPORTED_TRANSACTION", IMAGE_ERROR = "IMAGE_ERROR" } export declare enum ErrorLocation { AUTH_CONSTRUCTOR = "[Auth.constructor]", AUTH_SET_PROVIDER = "[Auth.setProvider]", ENFT_ON_ITEM_SOLD = "[ENFT.onItemSold]", ENFT_DEBUG_TRANSACTION = "[ENFT.debugTransaction]", ENFT_CHECK_TOKEN_TYPE = "[ENFT.checkTokenType]", PARSE_X2Y2 = "[parseX2Y2]", PARSE_LOOKSRARE = "[parseLooksRare]", PARSE_BLUR = "[parseBlur]", PARSE_TRANSACTION = "[parseTransaction]", PARSE_SEAPORT = "[parseSeaport]", PARSE_SUDOSWAP = "[parseSudoswap]", API_SHORTEN_ADDRESS = "[API.shortenAddress]", API_GET_NFT_METADATA_ALCHEMY = "[API.getNFTMetadataAlchemy]", API_GET_NFT_METADATA_INFURA = "[API.getNFTMetadataInfura]", DISCORD_SET_IMAGE_FIELD = "[Discord.setImageField]", DISCORD_SEND_EMBED_MESSAGE = "[Discord.sendEmbedMessage]", DISCORD_HANDLE_DISCORD_WEBHOOK = "[Discord.handleDiscordWebhook]", TWITTER_CONSTRUCTOR = "[Twitter.constructor]", TWITTER_SEND_SWAP_TWEET = "[Twitter.sendSwapTweet]", TWITTER_TWEET = "[Twitter.tweet]", IMAGE_CREATE_GIF = "[image_createGif]", IMAGE_CREATE_SWAP_GIF = "[image_createSwapGif]", IMAGE_ADD_TOKEN_ID_TO_IMAGE = "[image_addTokenIdToImage]", IMAGE_ADD_QUANTITY_TO_IMAGE = "[image_addQuantityToImage]", IMAGE_PREPARE_GIF_ENCODING_DATA = "[image_prepareGifEncodingData]" } export declare enum ErrorMessage { invalid_auth_instance = "Invalid Auth instance.", invalid_contract_address = "Invalid contract address.", invalid_transaction_hash = "Invalid transaction hash.", invalid_provider = "Invalid provider.", invalid_token_address = "Invalid token address", axios_error = "An Axios error occured", ethers_error = "An Ethers error occured", unknown_token_type = "Api cannot get the token type.\nPlease specify the (ERC721 or ERC1155) while calling on function." } /** * @description A class to handle errors and logs. */ export declare class Logger { version?: string; static code: typeof ErrorCode; static location: typeof ErrorLocation; static message: typeof ErrorMessage; constructor(_version: string); /** * * Creates an error message with the given message and optional code and params. * * @function * @param {string} message - The error message. * @param {ErrorCode} [code] - The error code. * @param {any} [params] - The parameters associated with the error. * @returns {string} The error message. **/ makeErrorMessage(message: string, code?: ErrorCode, params?: any): string; /** * * Throws an error with the given message and optional code and params. * * @function * @param message - The error message. * @param code - The error code. * @param params - The parameters associated with the error. * @throws {Error} The error message. **/ throwError(message: string, code?: ErrorCode, params?: any): never; /** * * Throws an argument error with the given message and optional code and params. * * @function * @param message - The error message. * @param name - The argument name. * @param value - The argument value. * @param params - The parameters associated with the error. * @throws {Error} The error message. **/ throwArgumentError(message: string, name: string, value: any, ...params: any): never; /** * * Throws an missing argument error with the given message and optional code and params. * * @function * @param message - The error message. * @param params - The parameters associated with the error. * @throws {Error} The error message. **/ throwMissingArgumentError(message?: string, ...params: any): never; /** * * Throws an too many argument error with the given message and optional code and params. * * @function * @param message - The error message. * @param params - The parameters associated with the error. * @throws {Error} The error message. */ throwTooManyArgumentError(message?: string, ...params: any): never; /** * * Console log the configuration options and NFT contract details. * * @function * @param auth - The Auth instance. * @param config - The Config instance. * @param options - The Options instance. */ static consoleLog: (auth: Auth, config: Config, options: Options) => void; } export declare const log: Logger; //# sourceMappingURL=index.d.ts.map