import type { UILayer } from "../../layers/UILayer/UILayer"; import { UIColor } from "../../miscellaneous/color/UIColor"; import type { UIColorConfig } from "../../miscellaneous/color/UIColor.Internal"; import type { UIProgressMaskFunction } from "../../miscellaneous/mask-function/UIProgressMaskFunction"; import { UITextureView } from "../../miscellaneous/texture/UITextureView"; import type { UITextureConfig } from "../../miscellaneous/texture/UITextureView.Internal"; import { UIElement } from "../UIElement/UIElement"; import type { UIProgressOptions } from "./UIProgress.Internal"; /** Progress bar with customizable fill direction */ export declare class UIProgress extends UIElement { /** Texture displayed by this element */ readonly texture: UITextureView; private readonly colorInternal; private readonly textureTransform; private readonly textureResolution; private maskFunctionInternal; private progressInternal; private progressDirty; private textureResolutionDirty; /** * Creates a new UIProgress instance. * * Defaults size to texture dimensions if width and height not provided. * * @param layer - Layer containing this element * @param texture - Texture to display * @param options - Configuration options */ constructor(layer: UILayer, texture: UITextureConfig, options?: Partial); /** Multiplicative tint. Alpha channel controls opacity. */ get color(): UIColor; /** Function controlling fill direction and shape */ get maskFunction(): UIProgressMaskFunction; /** Progress from 0 (empty) to 1 (full) */ get progress(): number; /** Multiplicative tint. Alpha channel controls opacity. */ set color(value: UIColorConfig); /** Function controlling fill direction and shape */ set maskFunction(value: UIProgressMaskFunction); /** Progress from 0 (empty) to 1 (full). Clamped. */ set progress(value: number); /** Removes element and frees resources */ destroy(): void; protected setPlaneTransform(): void; private readonly onTextureDimensionsChanged; private rebuildPlane; }