//#region src/is-rgba-255-tuple/index.d.ts /** * RGBA color where all channels are 0-255 (deck.gl standard format) * [red, green, blue, alpha] */ type Rgba255Tuple = readonly [r: number, g: number, b: number, a: number]; /** * Check if a value is a valid Rgba 255 tuple. * * @param value - The value to check. * @returns true if the value is a Rgba 255 tuple, false otherwise. * * @remarks * pure function * * @example * ```ts * import { isRgba255Tuple } from '@accelint/predicates/is-rgba-255-tuple'; * * console.log(isRgba255Tuple([255, 128, 64, 255])); * // true * * console.log(isRgba255Tuple([255, 128, 64])); * // false (missing alpha) * * console.log(isRgba255Tuple('rgba(255, 128, 64, 1)')); * // false (string, not tuple) * ``` */ declare function isRgba255Tuple(value: unknown): value is Rgba255Tuple; //#endregion export { Rgba255Tuple, isRgba255Tuple }; //# sourceMappingURL=index.d.ts.map