import * as _angular_core from '@angular/core'; import { OnInit, OnChanges, SimpleChanges, AfterViewInit } from '@angular/core'; import { SafeHtml } from '@angular/platform-browser'; import * as i3 from '@angular/common'; type NcPositionType = 'rightBottom' | 'leftBottom' | 'rightTop' | 'leftTop'; type NcAnimationType = 'default' | 'fade' | 'slide'; interface WeatherValue { value: T; } interface WeatherSkycon { bg: SafeHtml; icon: SafeHtml; desc: string; } interface WeatherPrecipitation { probability: number | string; } interface HourlyWeather { time: string; skycon: Pick; precipitation: WeatherPrecipitation; temperature: WeatherValue; } interface DailyWeather { date: string; skycon: Pick; precipitation: WeatherPrecipitation; temperature: { min: number; max: number; }; wind: { avg: { directionDescChinese: string; level: string; }; }; air_quality: { aqi: { avg: { color: string; value: number | string; desc: string; }; }; }; } interface NcWeatherData { realtime: { skycon: WeatherSkycon; air_quality: { aqi: { color: string; icon: string; value: number | string; desc: string; }; }; temperature: { value: number; min: number; max: number; }; humidity: WeatherValue; wind: { directionDescChinese: string; level: string; }; visibility: WeatherValue; cloudrate: WeatherValue; precipitation: WeatherValue; astro: { sunrise: string; sunset: string; }; life_index: { coldRisk: string; dressing: string; comfort: string; ultraviolet: string; carWashing: string; }; }; serverTime: WeatherValue; location: { city: string; country: string; }; forecast_keypoint: WeatherValue; hourly: { value: HourlyWeather[]; }; daily: { value: DailyWeather[]; }; } declare class WeatherComponent implements OnInit, OnChanges { /** token */ ncToken: _angular_core.InputSignal; /** 经度 */ ncLng: _angular_core.InputSignal; /** 纬度 */ ncLat: _angular_core.InputSignal; /** 刷新频率:分钟 */ ncInterval: _angular_core.InputSignalWithTransform; /** 详情面板相对于bar的位置 */ ncPosition: _angular_core.InputSignal; /** 动画类型:fade:淡入淡出 slide:滑入滑出 default:无动画 */ ncAnimation: _angular_core.InputSignal; /** 是否显示位置信息 */ ncShowLocation: _angular_core.InputSignalWithTransform; /** 24小时预报 */ ncShowHourly: _angular_core.InputSignalWithTransform; /** 5天预报 */ ncShowDaily: _angular_core.InputSignalWithTransform; /** 生活指数 */ ncShowLife: _angular_core.InputSignalWithTransform; readonly detailShow: _angular_core.WritableSignal; readonly weatherData: _angular_core.WritableSignal; readonly detailsClass: _angular_core.Signal; private readonly destroyRef; private readonly ls; private reloadInterval; private initialized; private destroyed; private requestVersion; constructor(); ngOnInit(): Promise; ngOnChanges(changes: SimpleChanges): void; getWeatherData(): Promise; updateWeatherData(): Promise; private formatWeatherData; private clearReloadInterval; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } type NcScrollBarMode = 'show' | 'hide' | 'hover'; declare class HorizontalScrollDirective implements AfterViewInit, OnChanges { ncScrollBar: _angular_core.InputSignal; private readonly destroyRef; private readonly el; private readonly renderer; private readonly hostClass; private isMouseOver; private readonly initialOverflowX; private styleElement; constructor(); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; private updateScrollbarVisibility; private applyScrollbarStyles; onMouseEnter(): void; onMouseLeave(): void; onWheel(event: WheelEvent): void; private cleanup; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class NcWeatherModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { HorizontalScrollDirective, NcWeatherModule, WeatherComponent }; export type { NcAnimationType, NcPositionType };