import { FDSNSourceId } from "./fdsnsourceid.mjs"; import { Quake } from "./quakeml.mjs"; import { Channel } from "./stationxml.mjs"; import type { MS3ExtraHeader, Marker as EHMarker, Event as EHEvent, Origin as EHOrigin, Magnitude as EHMagnitude, Channel as EHChannel, Timeseries as EHTimeseries, BagExtraHeader as EHBag } from "./ms3ehtypes.mjs"; import type { MarkerType } from "./seismographmarker.mjs"; export declare const STD_EH = "bag"; export declare function ehToQuake(exHead: MS3ExtraHeader): Quake | null; export declare function quakeToEH(quake: Quake): EHEvent; export declare function channelToEH(channel: Channel): EHChannel; export declare function ehToChannel(exHead: MS3ExtraHeader, sid: FDSNSourceId): Channel | null; export declare function markerToEH(mark: MarkerType): EHMarker; export declare function markerTypeFromEH(mtype: string): string; export declare function ehToMarkers(exHead: MS3ExtraHeader): Array; export declare function extractBagEH(jsonEH: Record): EHBag | null; export declare function createBagEH(): EHBag; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag station JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagChannelJsonEHType(v: unknown): v is EHChannel; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag event JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagEventJsonEHType(v: unknown): v is EHEvent; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag origin JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagOriginJsonEHType(v: unknown): v is EHOrigin; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag magnitude JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagMagJsonEHType(v: unknown): v is EHMagnitude; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag magnitude JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagPathJsonEHType(v: unknown): v is EHMagnitude; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag magnitude JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagMarkJsonEHType(v: unknown): v is EHMarker; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag magnitude JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagTimeseriesJsonEHType(v: unknown): v is EHTimeseries; /** * Verifies that JSON matches the types we expect, for typescript. * * @param v Bag JSON object, usually from MSeed3 extra headers * @returns true if matches expected structure */ export declare function isValidBagJsonEHType(v: unknown): v is EHBag; //# sourceMappingURL=mseed3eh.d.mts.map