UNPKG

node-apple-weatherkit

Version:
19 lines (18 loc) 535 B
/// <reference types="node" /> import { WeatherEndpoint, AvailabilityEndpoint } from './api/endpoints'; export interface WeatherKitAuth { teamId: string; serviceId: string; keyId: string; key: string | Buffer; expireTime?: number; } export declare class WeatherKit { protected readonly options: WeatherKitAuth; private readonly token; constructor(options: WeatherKitAuth); get jwt(): string; get availability(): AvailabilityEndpoint; get weather(): WeatherEndpoint; private encodeJWT; }