type ReactiveValue = T | (() => T); type ColorInput = string | number; export type GroundMode = "none" | "water" | "grass" | "sink"; export type GroundSurfaceProfile = { /** How the lower body blends with the ground. */ mode?: GroundMode; /** Fraction of the sprite height hidden (water depth, grass height, snow sink). */ submerge?: number; /** For water: submersion at depth `1`. `submerge` is used at depth `0`. */ deepSubmerge?: number; /** Water color mixed into the submerged part. */ tint?: ColorInput; tintStrength?: number; /** Ripple rings around the body in water. */ ripples?: boolean; /** Small splashes / puffs when walking. */ puffs?: boolean; puffColor?: ColorInput; /** Grass blades drawn in front of the legs. */ tuft?: boolean; tuftColor?: ColorInput; /** Multiplies SpriteShadows on this surface (shadows vanish on water). */ shadow?: number; }; export type GroundCasterOptions = { enabled?: ReactiveValue; /** Surface name under the sprite, usually from a surface sampler or zones. */ surface?: ReactiveValue; /** Water depth `0..1` (shore to open water). */ depth?: ReactiveValue; /** Ground color under the sprite: tints grass tufts and dust to match the map. */ groundColor?: ReactiveValue; /** Feet position inside the sprite bounds. Default: `{ x: 0.5, y: 1 }` */ footAnchor?: ReactiveValue<{ x: number; y: number; }>; }; export type GroundEffectsProps = { /** Custom or overridden surface profiles. */ surfaces?: ReactiveValue>; /** How often the scene is scanned for new casters (per second). Default: `4` */ scanHz?: ReactiveValue; }; export declare const GROUND_SURFACES: Record; /** * Makes sprites sit *in* their terrain instead of on top of it: * - `water`: the lower body sinks under a wavy waterline, wobbles and takes the water color, * ripples spread around the body and splashes appear when walking; deeper water hides more; * - `tallGrass`: legs disappear behind uneven blades and a grass tuft sways in front, * rustling when the character moves; * - `sand`, `dirt`, `snow`: dust or powder puffs at each step, feet slightly sink in snow. * * Tag sprites with `groundCaster={{ surface, depth }}`; pair it with `createSurfaceSampler()` * to read the surface straight from the map image. Works with `SpriteShadows` (shadows fade on water). */ export declare function GroundEffects(options?: GroundEffectsProps): import('../../../core/dist/index.d.ts').Element | Promise>; export {}; //# sourceMappingURL=GroundEffects.d.ts.map