import { Channel } from "./stationxml.mjs"; import { LatLonBox, LatLonRadius } from "./fdsncommon.mjs"; import { FDSNSourceId } from "./fdsnsourceid.mjs"; export declare const SOURCEID_LIST_ELEMENT = "sp-sourceid-list"; export declare const CHANNEL_LIST_ELEMENT = "sp-channel-list"; export declare const CHANNEL_CODE_ELEMENT = "sp-channel-code-input"; export declare const MINMAX_ELEMENT = "sp-minmax"; export declare const LATLONRADIUS_ELEMENT = "sp-latlon-radius"; export declare const LATLONBOX_ELEMENT = "sp-latlon-box"; export declare const LATLON_CHOICE_ELEMENT = "sp-latlon-choice"; export declare function numberOrNaN(a: string | number | null): number; export declare function numberFromInput(root: ShadowRoot | Element | null, query: string): number; export declare function labeledTextInput(label: string, defaultVal: string, classname?: string | null): HTMLElement; export declare function labeledNumberInput(label: string, defaultVal: string): HTMLElement; export declare class ChannelCodeInput extends HTMLElement { constructor(); attributeChangedCallback(name: string, oldValue: string, newValue: string): void; static get observedAttributes(): string[]; get network(): string; set network(n: string); get station(): string; set station(n: string); get location(): string; set location(n: string); get channel(): string; set channel(n: string); _getInputValue(name: string): string; _setInputValue(name: string, val: string): void; } export declare class ChannelListChooser extends HTMLElement { channels: Array; selected_channels: Set; constructor(); draw_element(): void; setChannels(channels: Array): void; appendChannels(channels: Array): void; get type(): string; set type(s: string); attributeChangedCallback(_name: string, _oldValue: string, _newValue: string): void; selectedChannels(): Array; } export declare class SourceIdListChooser extends HTMLElement { sourceIdList: Array; selected_sourceIds: Set; constructor(); draw_element(): void; setSourceIds(sourceIdList: Array): void; appendSourceIds(sourceIdList: Array): void; get type(): string; set type(s: string); attributeChangedCallback(_name: string, _oldValue: string, _newValue: string): void; selectedSourceIds(): Array; } export declare class LabeledMinMax extends HTMLElement { default_min: number; default_max: number; constructor(); attributeChangedCallback(name: string, oldValue: string, newValue: string): void; static get observedAttributes(): string[]; draw_element(): void; validate(lastChanged?: string): void; get lowerbound(): number; set lowerbound(v: number); get upperbound(): number; set upperbound(v: number); get min(): number; set min(v: number); get max(): number; set max(v: number); updateMinMax(): void; connectedCallback(): void; } /** * ensures input number is -90 <= value <= 90 * * @param value input latitude * @returns output latitude in range, zero if NaN */ export declare function validateLatitude(value: number): number; /** * ensures input number is -180 <= value <= 360 * * @param value input longitude * @returns output longitude in range, zero if NaN */ export declare function validateLongitude(value: number): number; export declare class LatLonRadiusEl extends HTMLElement { constructor(); draw(): void; attributeChangedCallback(_name: string, _oldValue: string, _newValue: string): void; static get observedAttributes(): string[]; get latitude(): number; set latitude(v: number); get longitude(): number; set longitude(v: number); get minRadius(): number; set minRadius(v: number); get maxRadius(): number; set maxRadius(v: number); asLatLonRadius(): LatLonRadius; toString(): string; _doUpdateCallback(): void; } export declare class LatLonBoxEl extends HTMLElement { constructor(); attributeChangedCallback(_name: string, _oldValue: string, _newValue: string): void; static get observedAttributes(): string[]; draw(): void; get south(): number; set south(value: number); get north(): number; set north(value: number); get west(): number; set west(value: number); get east(): number; set east(value: number); asLatLonBox(): LatLonBox; validate(lastChanged: string): void; toString(): string; } export declare class LatLonChoice extends HTMLElement { constructor(); static get observedAttributes(): string[]; attributeChangedCallback(name: string, oldValue: string, newValue: string): void; draw(): void; /** * returns choosen sub element, either LatLonBox or LatLonRadius or * null if choosen is "all" * * @returns choosen element */ choosen(): null | LatLonBoxEl | LatLonRadiusEl; get latLonBox(): LatLonBoxEl; get latLonRadius(): LatLonRadiusEl; } //# sourceMappingURL=components.d.mts.map