import { Texture } from 'pixi.js'; type PointLike = { x: number; y: number; }; type RectLike = { x: number; y: number; width: number; height: number; }; /** * A caster silhouette prepared as a shadow texture. * `footX` / `footY` locate the caster's feet in the texture (pixels), `heightPx` is the * silhouette height above the feet, and `localPerPx` converts texture pixels to caster local units. */ export type ShadowSilhouette = { texture: Texture; footX: number; footY: number; heightPx: number; localPerPx: number; }; export type SilhouetteOptions = { /** Penumbra blur at the tip of the shadow, in texture pixels. */ blur: number; /** 0 = very soft shadow, 1 = crisp shadow. */ hardness: number; /** How fast the shadow fades toward its tip. */ gradientPower: number; /** Feet position in caster local coordinates. */ foot: PointLike; }; /** Soft elliptical blob, used for contact shadows and as a fallback silhouette. */ export declare function getContactShadowTexture(): Texture; /** * Fallback silhouette (a soft blob) when the caster pixels cannot be read, * for example without a renderer. */ export declare function getBlobSilhouette(rect: RectLike): ShadowSilhouette; /** * Turns caster pixels into a shadow texture: solid near the feet, * blurred and fading toward the tip (penumbra grows with distance). */ export declare function bakeSilhouette(key: string, source: HTMLCanvasElement, rect: RectLike, options: SilhouetteOptions): ShadowSilhouette | null; export declare function clearSilhouetteCache(): void; export {}; //# sourceMappingURL=shadowSilhouette.d.ts.map