import { type Disposable } from "@goldenratio/core-utils"; import { Texture } from "./texture.js"; import type { EnvProvider } from "./env_provider/env_provider.js"; import type { SpriteSheetLoadTextureOptions } from "./types/types.js"; import type { SpriteSheetData } from "./types/spritesheet_types.js"; export declare class TextureUtil implements Disposable { private readonly cache; private readonly canvas_pattern_cache; private readonly buffer; private readonly ctx; private readonly env; constructor(env: EnvProvider); get_tinted_texture(source: Texture, tint_color: string, tint_alpha: number): Texture; get_canvas_pattern(source: Texture): CanvasPattern | undefined; private create_canvas_pattern_from_canvas; dispose(): void; } export declare function get_texture_name_from_file_path(file_path: string): string; export declare function generate_textures_from_spritesheet_tp(json_file: string | SpriteSheetData, options: SpriteSheetLoadTextureOptions, env: EnvProvider): Promise>; export declare function get_dpr_resource_file_path(image_file_path: string, env: EnvProvider, available_dpr_scales?: readonly number[]): { readonly res_url: string; readonly res_dpr_scale?: number; };