/// import sharp from 'sharp'; import type { Swap } from '../types/contracts/swap.contract'; import type { Config } from '../types/interfaces/enft.interface'; import type { TokenData } from '../types/contracts/token.contract.js'; /** * * A function that parses and returns sharp instance image. * * @async * @function * @param {string} image - The image url or raw data to be parsed. * @returns {Promise} A sharp object containing the parsed image. **/ declare const parseImage: (image: string) => Promise; /** * * Creates a GIF from an Object of tokens. * * @async * @function * @param {TokenData} tokens - An object containing token data. * @returns {Promise} A buffer object that contains the finalize GIF. **/ declare const createGif: (tokens: { [key: string]: TokenData; }) => Promise; /** * * Creates a GIF image with required information of swap objects. * * @async * @function * @param {Swap} swap An object which contains the swap details. * @param {Config} config A configuration object with authentication info. * @returns {Promise} Buffer object that contains the finalized GIF. **/ declare const createSwapGif: (swap: Swap, config: Config) => Promise; /** * * Creates an image with a text string centered. * * @async * @function * @param {string} text - The text string to be displayed * @returns {Promise} Promise resolving to a buffer of the generated image **/ declare const createTextImage: (text: string) => Promise; /** * * Get an array buffer of the specified image URL. * * @async * @function * @param {string} url - The URL from which to fetch the array buffer. * @returns {Promise} - An array buffer object of the specified image URL. */ declare const getArrayBuffer: (url: string) => Promise; export { parseImage, createGif, createSwapGif, getArrayBuffer, createTextImage }; //# sourceMappingURL=image.d.ts.map