import type { Texture } from '../webgl/texture.js'; import type { Game } from '../../core/game.js'; import type { Image } from '../image.js'; /** * Tints a sprite with the given color. * @param {object} sprite - The sprite to tint. * @param {object} color - The color to tint with. * @returns {object} The tinted sprite. */ export declare const getTintedTexture: (sprite: Image, color: number) => HTMLCanvasElement; /** * Tints a texture with the given color. * @param {object} texture - The texture to tint. * @param {object} color - The color to tint with. * @param {HTMLCanvasElement} canvas - The canvas to render to. * @throws {Error} If the operation fails. */ export declare const tintWithMultiply: (texture: Texture, color: number, canvas: HTMLCanvasElement) => void; /** * Tints a texture with the given color. * @param {object} texture - The texture to tint. * @param {object} color - The color to tint with. * @param {HTMLCanvasElement} canvas - The canvas to render to. * @throws {Error} If the operation fails. */ export declare const tintWithPerPixel: (texture: Texture, color: number, canvas: HTMLCanvasElement) => void; /** * Checks if the tinter can handle the given texture. * @returns {boolean} True if the tinter can handle the texture, false otherwise. * @throws {Error} If the operation fails. */ export declare const checkInverseAlpha: () => boolean; /** * Checks if the tinter can handle the given texture. * @returns {boolean} True if the tinter can handle the texture, false otherwise. * @throws {Error} If the operation fails. */ export declare const canUseNewCanvasBlendModes: () => boolean; /** * Creates a new Tinter instance. * @param {Game} game - The game instance. */ export declare const detectCapabilities: (game: Game) => void; //# sourceMappingURL=tinter.d.ts.map