import type { Image } from './image.js'; import type { Texture } from './webgl/texture.js'; import type { Matrix } from '../geom/matrix.js'; import type { RenderSession } from './render_session.js'; import type { Rectangle } from '../geom/rectangle.js'; /** * Sets the texture of a sprite. * @param {Image} target - The target image to set the texture on. * @param {Texture} texture - The new texture to set. * @param {boolean} destroyBase - Whether to destroy the base texture. */ export declare const setTexture: (target: Image, texture: Texture, destroyBase?: boolean) => void; /** * Gets the bounds of a sprite. * @param {Image} target - The target image to get bounds for. * @param {object} matrix - The transformation matrix. * @returns {Rectangle} The bounds rectangle. */ export declare const getBounds: (target: Image, matrix?: Matrix | null) => Rectangle; /** * Gets the local bounds of a sprite. * @param {Image} target - The target image to get local bounds for. * @returns {Rectangle} The local bounds rectangle. */ export declare const getLocalBounds: (target: Image) => Rectangle; /** * Renders a sprite using WebGL. * @param {Image} target - The target image to render. * @param {object} renderSession - The render session object. * @param {Matrix | null | undefined} matrix - The transformation matrix. */ export declare const renderWebGL: (target: Image, renderSession: RenderSession, matrix?: Matrix | null | undefined) => void; /** * Renders a sprite using Canvas. * @param {Image} target - The target image to render. * @param {object} renderSession - The render session object. * @param {Matrix | null | undefined} matrix - The transformation matrix. */ export declare const renderCanvas: (target: Image, renderSession: RenderSession, matrix?: Matrix | null | undefined) => void; //# sourceMappingURL=sprite_util.d.ts.map