/** * Media types that images can be converted to. * * ```js * const tinify = require("tinify") * * tinify.fromFile("input.png") * .convert({type: tinify.Format.JXL}) * .toFile("output.jxl") * ``` * * Multiple types may be supplied, in which case the API returns the smallest * result: * * ```js * .convert({type: [tinify.Format.JXL, tinify.Format.WEBP]}) * ``` */ declare const Format: { /** WebP. */ readonly WEBP: "image/webp"; /** PNG. */ readonly PNG: "image/png"; /** JPEG. */ readonly JPEG: "image/jpeg"; /** * JPEG, under the alternative `image/jpg` media type the API also accepts. * The API normalises this to `image/jpeg`, so the result is identical to * `JPEG`. The two constants hold different strings but select the same * format. */ readonly JPG: "image/jpg"; /** AVIF. */ readonly AVIF: "image/avif"; /** JPEG XL. */ readonly JXL: "image/jxl"; /** Wildcard, returns the smallest of the supported types. */ readonly ANY: "*/*"; }; export default Format;