import { Container, Texture } from 'pixi.js'; export type WeatherParticleEffect = "embers" | "ash" | "leaves" | "petals" | "fireflies" | "spores" | "sand"; export declare const WEATHER_PARTICLE_EFFECTS: WeatherParticleEffect[]; export declare function isWeatherParticleEffect(value: unknown): value is WeatherParticleEffect; type Range = [number, number]; interface WeatherParticleStyle { textures: () => Texture[]; colors: string[]; blendMode: "normal" | "add"; /** Sprite scale. */ size: Range; /** Vertical speed in px/s at `speed = 0.5`. Negative values rise. */ fall: Range; /** Horizontal speed in px/s, following the wind direction. */ drift?: number; sway?: Range; swayFrequency?: Range; /** Degrees per second. */ spin?: Range; /** 3D flip speed in rad/s (leaves, petals, ash). */ tumble?: Range; alpha: Range; /** Lifetime in seconds. Particles fade in/out and respawn instead of wrapping forever. */ life?: Range; flicker?: number; /** Glow period in seconds (fireflies). */ pulse?: Range; /** Random walk speed in px/s. */ wander?: number; alignToMotion?: boolean; /** Tint reached at the end of the particle life (cooling embers). */ endColor?: string; haze?: { color: string; alpha: number; }; /** Particles per 1280x720 area at `density = 100`. */ densityScale: number; } export interface WeatherParticleParams { width: number; height: number; cameraX?: number; cameraY?: number; speed?: number; windDirection?: number; windStrength?: number; density?: number; maxDrops?: number; colors?: (string | number)[]; particleSize?: number; haze?: number; } export declare const WEATHER_PARTICLE_STYLES: Record; /** * Screen-sized ambient particle field (embers, leaves, fireflies...). * Particles live in the visible area, wrap around its edges and stay anchored to the * world when the camera moves (`cameraX` / `cameraY`). */ export declare class WeatherParticleField extends Container { readonly effect: WeatherParticleEffect; readonly style: WeatherParticleStyle; private particles; private pool; private hazeGraphics; private hazeKey; private lastCameraX; private lastCameraY; private random; private palette; private paletteKey; private time; constructor(effect: WeatherParticleEffect, random?: () => number); get particleCount(): number; update(deltaMs: number, params: WeatherParticleParams): void; private targetCount; private updatePalette; private drawHaze; private followCamera; private syncCount; private resetParticle; private wrap; private render; private pick; } export {}; //# sourceMappingURL=particles.d.ts.map