/** * Parse a hex color string into numeric components. * Supports "#rgb", "#rrggbb", "#rrggbbaa". */ export declare function parseHex(hex: string): { r: number; g: number; b: number; a: number; }; /** Convert {r,g,b,a} to a Phaser-compatible 0xRRGGBB number. */ export declare function toColorInt(c: { r: number; g: number; b: number; }): number; /** Dim a hex color by a multiplier (0–1). */ export declare function dimHex(hex: string, multiplier: number): { color: number; alpha: number; }; /** Parse hex to { color: 0xRRGGBB, alpha: 0–1 }. */ export declare function hexToColorAlpha(hex: string): { color: number; alpha: number; }; /** Device pixel ratio for crisp text on high-DPI displays. */ export declare function getDevicePixelRatio(): number; /** Rough monospace-ish text width estimator. */ export declare function estimateTextWidth(text: string, fontSize: number): number; //# sourceMappingURL=utils.d.ts.map