import { AlphaMap } from "./AlphaMap.js"; //#region src/events/resolveAlphaMap.d.ts /** Must stay in lockstep with ALPHA_DESCRIPTOR in @three-flatland/alphamap. */ declare const ALPHA_SIDECAR_DESCRIPTOR: { readonly kind: "alpha"; readonly v: 1; }; interface ResolveAlphaMapOptions { /** Skip the sidecar probe and always extract at runtime. */ forceRuntime?: boolean; /** * Runtime extraction strategy. The SpriteSheetLoader passes a * texture-readback closure; injectable here for testing and for * worker-based readback later. */ runtimeFallback: () => Promise; } /** Build an AlphaMap from decoded RGBA pixels (alpha lives in R). */ declare function decodeAlphaPng(rgba: Uint8ClampedArray | Uint8Array, width: number, height: number): AlphaMap; /** * Resolve an alpha hitmask for a source image URL: probe the baked * `.alpha.png` sibling (hash-stamped — see flatland-bake alpha), load * it on a match, otherwise fall back to runtime extraction with a * devtime warning. Mirrors resolveNormalMap. Spec §10. */ declare function resolveAlphaMap(sourceURL: string, options: ResolveAlphaMapOptions): Promise; //#endregion export { ALPHA_SIDECAR_DESCRIPTOR, ResolveAlphaMapOptions, decodeAlphaPng, resolveAlphaMap }; //# sourceMappingURL=resolveAlphaMap.d.ts.map