import { d } from './index'; export type MaskType = 'alpha' | 'alphaInverted' | 'luminance' | 'luminanceInverted'; /** Alpha mask: target alpha × mask alpha. */ export declare const alpha: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; /** Inverted alpha mask: target alpha × (1 - mask alpha). */ export declare const alphaInverted: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; /** Luminance mask: target alpha × mask luminance. */ export declare const luminance: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; /** Inverted luminance mask: target alpha × (1 - mask luminance). */ export declare const luminanceInverted: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; /** Mask functions keyed by MaskType. Composer references these as externals. */ export declare const maskFunctions: { readonly alpha: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; readonly alphaInverted: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; readonly luminance: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; readonly luminanceInverted: import('typegpu').TgpuFn<(target: d.Vec4f, mask: d.Vec4f) => d.Vec4f>; }; /** * Apply a mask to a target — CPU/builder-level dispatcher. `maskType` is compile-time; inside a * `'use gpu'` body reference `maskFunctions[type]` instead. */ export declare const applyMask: (target: d.v4f, mask: d.v4f, maskType?: MaskType) => d.v4f; //# sourceMappingURL=mask.d.ts.map