import { Quake, EventParameters } from "./quakeml.mjs"; import { DateTime } from "luxon"; import type { Feature, Point, Polygon, FeatureCollection } from "geojson"; export declare const hourSummarySignificantUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_hour.geojson"; export declare const hourSummaryM4_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_hour.geojson"; export declare const hourSummaryM2_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_hour.geojson"; export declare const hourSummaryM1_0Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_hour.geojson"; export declare const hourSummaryAllUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson"; export declare const daySummarySignificantUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_day.geojson"; export declare const daySummaryM4_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_day.geojson"; export declare const daySummaryM2_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.geojson"; export declare const daySummaryM1_0Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_day.geojson"; export declare const daySummaryAllUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson"; export declare const weekSummarySignificantUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_week.geojson"; export declare const weekSummaryM4_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_week.geojson"; export declare const weekSummaryM2_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.geojson"; export declare const weekSummaryM1_0Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week.geojson"; export declare const weekSummaryAllUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson"; export declare const monthSummarySignificantUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/significant_month.geojson"; export declare const monthSummaryM4_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/4.5_month.geojson"; export declare const monthSummaryM2_5Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.geojson"; export declare const monthSummaryM1_0Url = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_month.geojson"; export declare const monthSummaryAllUrl = "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson"; export declare const yearSignificant = "https://earthquake.usgs.gov/fdsnws/event/1/query.geojson?minsig=600"; export declare const USGS_TECTONIC_SUMMARY_URL = "https://earthquake.usgs.gov/ws/geoserve/layers.json?type=tectonic"; export declare function loadHourSummarySignificant(): Promise>; export declare function loadHourSummaryM4_5(): Promise>; export declare function loadHourSummaryM2_5(): Promise>; export declare function loadHourSummaryM1_0(): Promise>; export declare function loadHourSummaryAll(): Promise>; export declare function loadDaySummarySignificant(): Promise>; export declare function loadDaySummaryM4_5(): Promise>; export declare function loadDaySummaryM2_5(): Promise>; export declare function loadDaySummaryM1_0(): Promise>; export declare function loadDaySummaryAll(): Promise>; export declare function loadWeekSummarySignificant(): Promise>; export declare function loadWeekSummaryM4_5(): Promise>; export declare function loadWeekSummaryM2_5(): Promise>; export declare function loadWeekSummaryM1_0(): Promise>; export declare function loadWeekSummaryAll(): Promise>; export declare function loadMonthSummarySignificant(): Promise>; export declare function loadMonthSummaryM4_5(): Promise>; export declare function loadMonthSummaryM2_5(): Promise>; export declare function loadMonthSummaryM1_0(): Promise>; export declare function loadMonthSummaryAll(): Promise>; export declare function loadMonthSignificant(): Promise>; export declare function loadYearSignificant(): Promise>; export declare function loadSignificant(start: DateTime, end: DateTime): Promise>; export declare function loadUSGSSummary(url: string): Promise>; export declare function loadUSGSGeoJsonSummary(url: string): Promise; export declare function loadRawUSGSGeoJsonSummary(url: string): Promise; /** * Parses geojson from USGS feeds. Not all fields are parsed, just * basic origin and magnitude along with the id. * See https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php * @param geojson text from USGS feed * @returns EventParameters, which holds an array of Quake objects */ export declare function parseGeoJSON(geojson: USGSGeoJsonSummary): EventParameters; /** * Parses a single GeoJson feature into a Quake. * @param feature from USGS style geojson * @returns Quake with origin and magnitude */ export declare function parseFeatureAsQuake(feature: USGSGeoJsonFeature): Quake; export interface USGSGeoJsonMetaData { generated: number; url: string; title: string; api: string; count: number; status: number; } export interface USGSGeoJsonProperties { mag: number; place: string; time: number; updated: number; tz: number; url: string; detail: string; felt: number; cdi: number; mmi: number; alert: string; status: string; tsunami: number; sig: number; net: string; code: string; ids: string; sources: string; types: string; nst: number; dmin: number; rms: number; gap: number; magType: string; type: string; title: string; } export interface USGSGeoJsonFeature extends Feature { } export interface USGSGeoJsonSummary { type: "FeatureCollection"; metadata: USGSGeoJsonMetaData; features: Array; } export declare function isValidUSGSGeoJsonSummary(jsonValue: unknown): jsonValue is USGSGeoJsonSummary; export declare function isValidUSGSGeoJsonQuake(jsonValue: unknown): jsonValue is USGSGeoJsonFeature; export interface USGSTectonicGeoJsonProperties { name: string; summary: string; type: string; } export interface USGSTectonicGeoJsonFeature extends FeatureCollection { } export interface USGSTectonicGeoJsonSummary { type: "FeatureCollection"; metadata: USGSGeoJsonMetaData; tectonic: USGSTectonicGeoJsonFeature; } export declare function loadUSGSTectonicLayer(url?: string): Promise; export declare function isValidUSGSTectonicGeoJsonSummary(jsonValue: unknown): jsonValue is USGSTectonicGeoJsonSummary; export declare function isValidUSGSTectonic(jsonValue: unknown): jsonValue is USGSTectonicGeoJsonFeature; //# sourceMappingURL=usgsgeojson.d.mts.map