import { Filter } from 'pixi.js'; type PointLike = { x: number; y: number; }; type BoundsLike = { x: number; y: number; width: number; height: number; }; type ScreenPointLike = { x: number; y: number; }; type ReactiveValue = T | (() => T); type ViewportLike = { getVisibleBounds?: () => BoundsLike | null | undefined; toScreen?: (x: number, y: number) => ScreenPointLike; }; export type NightSpot = PointLike & { radius?: number; intensity?: number; flicker?: boolean; flickerSpeed?: number; pulse?: boolean; pulseSpeed?: number; phase?: number; }; export type NightSpotInput = { x: ReactiveValue; y: ReactiveValue; radius?: ReactiveValue; intensity?: ReactiveValue; flicker?: ReactiveValue; flickerSpeed?: ReactiveValue; pulse?: ReactiveValue; pulseSpeed?: ReactiveValue; phase?: ReactiveValue; }; /** * Color input type supporting hex string, number, or RGB array. * * @example * ```ts * // Hex string * const color1: ColorInput = "#0a1020"; * // Number * const color2: ColorInput = 0x0a1020; * // RGB tuple (0-255) * const color3: ColorInput = [10, 16, 32]; * // Normalized RGB (0-1) * const color4: ColorInput = [0.04, 0.06, 0.12]; * ``` */ export type ColorInput = string | number | [number, number, number]; export type NightDarknessOptions = { /** Overlay opacity outside light spots (0 = no darkening, 1 = full color overlay). Default: 0.75 */ opacity?: ReactiveValue; /** Overlay color outside light spots. Default: "#000000" */ color?: ReactiveValue; }; export type NightHazeOptions = { /** Haze color around light spots. Default: "#141424" */ color?: ReactiveValue; /** Distance from light center where haze starts (0-1). Default: 0.5 */ radius?: ReactiveValue; /** Width of the haze transition. Default: 0.35 */ softness?: ReactiveValue; /** Haze overlay opacity when fully outside light spots. Default: 0.35 */ opacity?: ReactiveValue; }; type NightHazeValues = { color?: ColorInput; radius?: number; softness?: number; opacity?: number; }; export type NightAmbiantProps = { /** Main reactive list of light spots. */ lightSpots?: ReactiveValue>; /** Alias for `lightSpots` for compatibility. */ spots?: ReactiveValue>; /** Darkness overlay outside light spots. A number is treated as opacity for compatibility. */ darkness?: ReactiveValue; /** Tint color applied in dark zones. Legacy alias for `darkness.color`. Default: "#000000" */ darkColor?: ReactiveValue; /** Haze configuration. */ haze?: ReactiveValue; }; export type NightAmbientProps = NightAmbiantProps; export type NightFilter = Filter & { setLightWorldPosition: (position: PointLike | null) => void; getLightWorldPosition: () => PointLike | null; setSpots: (spots: NightSpot[]) => void; getSpots: () => NightSpot[]; syncLightToViewport: () => void; setDarknessOpacity: (value: number) => void; setDarkness: (value: number) => void; setDarknessColor: (color: ColorInput) => void; setDarkColor: (color: ColorInput) => void; setHazeColor: (color: ColorInput) => void; setHazeRadius: (value: number) => void; setHazeSoftness: (value: number) => void; setHazeOpacity: (value: number) => void; }; /** * Creates a night filter with configurable light spots, darkness, and haze effects. * * The filter renders a dark overlay with circular light spots that illuminate areas. * It supports multiple spots with individual intensity, radius, flicker, and pulse effects. * * @param viewport - Optional viewport for world-to-screen coordinate conversion * @param options - Configuration options for the filter * @returns A NightFilter instance with methods to control the effect * * @example * ```ts * const filter = createNightFilter(viewport, { * spots: [{ x: 100, y: 100, radius: 200, intensity: 1.0 }], * darknessOpacity: 0.8, * darknessColor: "#0a1020", * haze: { color: "#141a2a", opacity: 0.35 }, * }); * container.filters = [filter]; * ``` */ export declare function createNightFilter(viewport?: ViewportLike, options?: { lightWorldPosition?: PointLike | null; spots?: NightSpot[]; getBounds?: () => BoundsLike | null | undefined; darknessOpacity?: number; darknessColor?: ColorInput; darkness?: number; darkColor?: ColorInput; haze?: NightHazeValues; }): NightFilter; /** * Night ambience component that adds a dark overlay with dynamic light spots. * * This component creates a night-time atmosphere with configurable darkness, * haze effects, and multiple light sources. It automatically attaches to a * Viewport if present in context, otherwise to the parent container. * * Prefer `NightAmbient`; `NightAmbiant` is kept for backward compatibility. * * All props are reactive and support signal/function values. * * @param options - Configuration options for the night ambiance effect * * @example * ```html * * * * ``` */ export declare function NightAmbiant(options?: NightAmbiantProps): import('../../core/dist/index.d.ts').Element | Promise>; /** Preferred spelling. `NightAmbiant` remains exported for backward compatibility. */ export declare const NightAmbient: typeof NightAmbiant; export {}; //# sourceMappingURL=NightAmbiant.d.ts.map