signavis 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/assets/wasm-spectrogram.worker-oU-CQV61.js.map +1 -1
  2. package/dist/birdnet-player.css +1 -1
  3. package/dist/birdnet-player.esm.js +1541 -1162
  4. package/dist/birdnet-player.esm.js.map +1 -1
  5. package/dist/birdnet-player.iife.js +63 -29
  6. package/dist/birdnet-player.iife.js.map +1 -1
  7. package/dist/tokens.css +3 -0
  8. package/package.json +6 -4
  9. package/types/generated/app/BirdNETPlayer.d.ts +36 -7
  10. package/types/generated/app/PlayerState.d.ts +8 -1
  11. package/types/generated/app/ViewportManager.d.ts +20 -3
  12. package/types/generated/app/adopt-detection.d.ts +34 -0
  13. package/types/generated/app/annotation-sets.d.ts +9 -1
  14. package/types/generated/app/annotator-profile.d.ts +2 -0
  15. package/types/generated/app/domRefs.d.ts +7 -0
  16. package/types/generated/app/interactionState.d.ts +2 -0
  17. package/types/generated/app/labeling/app-context.d.ts +44 -0
  18. package/types/generated/app/labeling/dedupe-labels.d.ts +13 -0
  19. package/types/generated/app/labeling/features/annota-import.d.ts +14 -0
  20. package/types/generated/app/labeling/features/file-drop.d.ts +12 -0
  21. package/types/generated/app/labeling/features/mic-recording.d.ts +9 -0
  22. package/types/generated/app/labeling/features/raven-export.d.ts +6 -0
  23. package/types/generated/app/labeling/features/theme.d.ts +1 -0
  24. package/types/generated/app/labeling/features/xc-upload.d.ts +48 -0
  25. package/types/generated/app/labeling/help-menu.d.ts +37 -0
  26. package/types/generated/app/labeling/label-store.d.ts +59 -0
  27. package/types/generated/app/labeling/main.d.ts +0 -0
  28. package/types/generated/app/labeling/render-scheduler.d.ts +16 -0
  29. package/types/generated/app/labeling/sponsor-card.d.ts +11 -0
  30. package/types/generated/app/player/WaveformRenderer.d.ts +10 -0
  31. package/types/generated/app/recording-manager.d.ts +2 -0
  32. package/types/generated/app/similarBand.d.ts +11 -0
  33. package/types/generated/app/similarSpectrogram.d.ts +34 -0
  34. package/types/generated/app/suggest-similar.d.ts +56 -0
  35. package/types/generated/domain/annotations.d.ts +103 -4
  36. package/types/generated/domain/detector/birdboxStream.d.ts +142 -0
  37. package/types/generated/domain/detector/boxUnder.d.ts +17 -0
  38. package/types/generated/domain/detector/fusion.d.ts +50 -0
  39. package/types/generated/domain/detector/nearby.d.ts +47 -0
  40. package/types/generated/domain/detector/pacer.d.ts +45 -0
  41. package/types/generated/domain/labelBand.d.ts +12 -0
  42. package/types/generated/domain/similar/cluster.d.ts +40 -0
  43. package/types/generated/domain/similar/ncc.d.ts +144 -0
  44. package/types/generated/domain/snapToCall.d.ts +10 -0
  45. package/types/generated/domain/species-lists.d.ts +53 -0
  46. package/types/generated/domain/speciesLinks.d.ts +17 -0
  47. package/types/generated/infrastructure/audio/LiveRecorder.d.ts +2 -0
  48. package/types/generated/infrastructure/birdnetInference.d.ts +3 -0
  49. package/types/generated/infrastructure/detector/birdbox.worker.d.ts +1 -0
  50. package/types/generated/infrastructure/detector/birdboxDetector.d.ts +69 -0
  51. package/types/generated/infrastructure/detector/birdboxGraph.d.ts +53 -0
  52. package/types/generated/infrastructure/similar.worker.d.ts +1 -0
  53. package/types/generated/infrastructure/tauri/runtime.d.ts +8 -2
  54. package/types/generated/infrastructure/xeno-canto/annotaPayload.d.ts +2 -0
  55. package/types/generated/shared/constants.d.ts +2 -1
  56. package/types/generated/shared/events.d.ts +2 -0
  57. package/types/generated/ui/components/label-editor/LabelEditorModal.d.ts +7 -1
  58. package/types/generated/ui/components/label-template/template-tags.d.ts +18 -0
  59. package/types/generated/ui/components/onboarding/onboarding-wizard.d.ts +22 -0
  60. package/types/generated/ui/components/overview/overview-controller.d.ts +6 -1
  61. package/types/generated/ui/components/similar-review/group-review.d.ts +40 -0
  62. package/types/generated/ui/components/similar-review/similar-review.d.ts +62 -0
  63. package/types/generated/ui/components/taxonomy-ui/species-geo-cache.d.ts +28 -0
  64. package/types/generated/ui/components/taxonomy-ui/species-ranking.d.ts +51 -0
  65. package/types/generated/ui/components/taxonomy-ui/taxonomy-ui.d.ts +43 -26
  66. package/types/generated/ui/components/toast/undo-toast.d.ts +6 -1
  67. package/types/generated/ui/components/waveform/waveform.d.ts +4 -1
  68. package/types/generated/ui/components/xc-export-modal/xc-export-modal.d.ts +5 -0
  69. package/types/generated/ui/mobile/i18n.d.ts +133 -0
  70. package/types/generated/ui/mobile/mobile-app.d.ts +272 -0
  71. package/types/generated/ui/mobile/thumb.d.ts +11 -0
  72. package/types/generated/ui/panels/birdbox-panel.d.ts +75 -0
  73. package/types/generated/ui/panels/birdnet-panel.d.ts +36 -4
  74. package/types/generated/ui/panels/label-list.d.ts +14 -0
  75. package/types/generated/ui/panels/mode-tiles.d.ts +7 -0
  76. package/types/generated/ui/panels/model-picker.d.ts +11 -0
  77. package/types/generated/ui/panels/recording-explorer.d.ts +2 -0
  78. package/types/generated/ui/panels/sidebar.d.ts +11 -1
  79. package/types/generated/ui/panels/similar-panel.d.ts +29 -0
  80. package/types/generated/ui/panels/species-lists-panel.d.ts +58 -0
  81. package/types/generated/ui/panels/xc-panel.d.ts +10 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Small spectrogram pictures for the recording cards (phone UI).
3
+ * Rendered once per recording into a JPEG data URL, so the cards stay cheap.
4
+ */
5
+ /** Mono samples of an AudioBuffer (first channel is enough for a thumbnail). */
6
+ export declare function renderThumb(buffer: AudioBuffer): string | null;
7
+ /** Fetch + decode a recording that is not open, then render its thumbnail (null = skipped). */
8
+ export declare function thumbFromUrl(url: string): Promise<{
9
+ thumb: string | null;
10
+ duration: number;
11
+ } | null>;
@@ -0,0 +1,75 @@
1
+ import { BirdBoxDetector } from '../../infrastructure/detector/birdboxDetector.ts';
2
+ export declare const BIRDBOX_ORIGIN = "BirdBox";
3
+ export interface BirdBoxPanelOptions {
4
+ confInput: HTMLInputElement;
5
+ confVal: HTMLElement;
6
+ gapInput: HTMLInputElement;
7
+ gapVal: HTMLElement;
8
+ runBtn: HTMLButtonElement;
9
+ progressWrap: HTMLElement;
10
+ progressBar: HTMLElement;
11
+ statusEl: HTMLElement;
12
+ getAudioBuffer: () => AudioBuffer | null | undefined;
13
+ getRecordingId: () => string | null;
14
+ getAuthor?: () => string;
15
+ /** Replace this recording's BirdBox labels; `running` while detection is in progress. */
16
+ onBoxes: (recordingId: string | null, labels: object[], info: {
17
+ running: boolean;
18
+ }) => void;
19
+ detector?: BirdBoxDetector;
20
+ }
21
+ export declare class BirdBoxPanel {
22
+ private readonly o;
23
+ private readonly detector;
24
+ private readonly results;
25
+ private abort;
26
+ private pacer;
27
+ private runningId;
28
+ private readonly snapCache;
29
+ private readonly nearby;
30
+ constructor(opts: BirdBoxPanelOptions);
31
+ get conf(): number;
32
+ get gap(): number;
33
+ get running(): boolean;
34
+ /** Detection results of a recording (e.g. after switching back to it). */
35
+ hasResult(recordingId: string | null): boolean;
36
+ /**
37
+ * The most confident box under a point at confidence `conf` (Snap to call), fused with the
38
+ * panel's gap setting. `weaker`: none at `conf`, but one at the lowest confidence.
39
+ * Null without rows for the recording at that point (neither a run nor detectNear).
40
+ */
41
+ boxAt(recordingId: string | null, time: number, freq: number, conf: number): {
42
+ box: {
43
+ start: number;
44
+ end: number;
45
+ freqMin: number;
46
+ freqMax: number;
47
+ } | null;
48
+ weaker: boolean;
49
+ } | null;
50
+ /**
51
+ * BirdBox on the few seconds around `time` only (Snap on a recording without a run):
52
+ * the windows there plus the 60 s of audio their noise floor needs, so the rows equal
53
+ * the whole run's. Nothing is shown as boxes; boxAt reads them. False if nothing ran.
54
+ */
55
+ detectNear(recordingId: string | null, time: number): Promise<boolean>;
56
+ /** The run's result if its rows reach the seconds around `time` (a stopped run may not). */
57
+ private covering;
58
+ /** Fuse the active recording's rows again with the slider settings. */
59
+ refuse(): void;
60
+ /** Detect call boxes on the open recording; does nothing while a run is going. */
61
+ run(): Promise<void>;
62
+ stop(): void;
63
+ /** Forget a recording's rows (its labels were removed); a run on it stops without emitting. */
64
+ forget(recordingId: string | null): void;
65
+ /** Forget all rows (the BirdBox set was deleted, or the session was reset). */
66
+ forgetAll(): void;
67
+ dispose(): void;
68
+ private emit;
69
+ private toLabel;
70
+ private showValues;
71
+ private status;
72
+ private progress;
73
+ private restorePrefs;
74
+ private savePrefs;
75
+ }
@@ -11,6 +11,10 @@ export declare const BIRDNET_MODEL_PRESETS: {
11
11
  readonly label: 'BirdNET v2.4 (legacy, TF.js)';
12
12
  readonly url: string;
13
13
  };
14
+ readonly anurapam: {
15
+ readonly label: 'AnuraPAM (BirdNET v2.4 + 14 European anurans, local download)';
16
+ readonly url: string;
17
+ };
14
18
  };
15
19
  /**
16
20
  * Merge labels of the same species whose time ranges overlap.
@@ -41,6 +45,13 @@ export declare class BirdNETPanel {
41
45
  modelUrlInput: any;
42
46
  modelPresetSelect: any;
43
47
  onResults: any;
48
+ /** Active species list: only these scientific names are kept (null = all). */
49
+ getSpeciesFilter?: () => {
50
+ name: string;
51
+ set: Set<string> | null;
52
+ } | null;
53
+ /** Id of the open recording; results are handed back with the id the run started for. */
54
+ getRecordingId?: () => string | null;
44
55
  openBtn: any;
45
56
  overlapSelect: any;
46
57
  progressBar: any;
@@ -70,7 +81,8 @@ export declare class BirdNETPanel {
70
81
  * @param {import('../../src/domain/analysis/types.ts').AnalysisBackend} opts.birdnet
71
82
  * @param {() => AudioBuffer|null} opts.getAudioBuffer
72
83
  * @param {(det: any, audioBuffer: AudioBuffer) => any} opts.resolveLabel
73
- * @param {(labels: any[]) => void} opts.onResults
84
+ * @param {(labels: any[], recordingId: string|null) => void} opts.onResults
85
+ * @param {() => string|null} [opts.getRecordingId]
74
86
  * -- Geo / location (all optional) --
75
87
  * @param {() => {coords: {lat:number,lon:number}|null, date: string|null}|null} [opts.getContext]
76
88
  * Recording context (single coordinate/date source); replaces the lat/lon inputs when given
@@ -122,8 +134,28 @@ export declare class BirdNETPanel {
122
134
  _geoStatus(msg: any): void;
123
135
  _setCoords(lat: any, lon: any): void;
124
136
  _bindEvents(): void;
125
- /** Analyze the loaded recording (same as the button). Resolves when done; errors go to the status line. */
126
- analyze(): Promise<void>;
127
- _analyze(): Promise<void>;
137
+ /**
138
+ * Live detection (phone Live screen): loads the selected model and applies the location
139
+ * filter for today, then returns a function that classifies one 3 s chunk of microphone
140
+ * audio with the panel's confidence / geo settings.
141
+ */
142
+ prepareLive(onStatus?: (msg: string) => void): Promise<{
143
+ minConfidence: number;
144
+ analyze: (pcm: Float32Array, sampleRate: number) => Promise<{
145
+ start: number;
146
+ end: number;
147
+ scientific: string;
148
+ common: string;
149
+ confidence: number;
150
+ }[]>;
151
+ }>;
152
+ /**
153
+ * Analyze the loaded recording (same as the button). Resolves true when the detections were added;
154
+ * false when it did not run (busy, no audio, no model URL) or failed (message in the status line).
155
+ */
156
+ analyze(): Promise<boolean>;
157
+ /** False while an analysis runs (or the panel has disabled it). */
158
+ get canAnalyze(): boolean;
159
+ _analyze(): Promise<boolean>;
128
160
  dispose(): void;
129
161
  }
@@ -42,6 +42,12 @@ export declare class LabelList {
42
42
  /** Layer callbacks of the own source (see LayerOptions). */
43
43
  _layers: LayerOptions | null;
44
44
  _cardMap: any;
45
+ /** Closed group per label id whose rows are not built yet (see _buildGroup). */
46
+ _lazyGroupOf: Map<any, any>;
47
+ /** Every label id in list order, built or not (range selection). */
48
+ _rowOrder: any[];
49
+ /** Index of each label in this._labels at render time. */
50
+ _indexOf: Map<any, number>;
45
51
  _container: any;
46
52
  _emptyEl: any;
47
53
  _expandedGroups: any;
@@ -80,6 +86,8 @@ export declare class LabelList {
80
86
  _speciesSearchFactory: any;
81
87
  _view: 'source' | 'time';
82
88
  _filter: string;
89
+ _filterRaw: string;
90
+ _altNames: ((sci: string) => string[]) | null;
83
91
  _playingId: string | null;
84
92
  /**
85
93
  * @param {object} opts
@@ -161,6 +169,12 @@ export declare class LabelList {
161
169
  _startSetRename(nameEl: any, setKey: string, setInfo: any): void;
162
170
  _buildThumb(lbl: any, scientific: string): any;
163
171
  _buildGroup(instances: any[], locked: boolean, setKey: string, external: boolean): any;
172
+ /** The label as it is now (updateBadges replaces edited labels in this._labels). */
173
+ _currentLabel(lbl: any): any;
174
+ /** Row for a label id, building its (closed) group's rows if needed. */
175
+ _rowFor(labelId: any): any;
176
+ /** Selection, multi-selection and play state for a row built after render(). */
177
+ _decorateRow(id: any, row: any): void;
164
178
  _setGroupOpen(group: any, open: boolean): void;
165
179
  _buildTagText(lbl: any, flat: boolean): any;
166
180
  _buildRow(lbl: any, locked: boolean, o: {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Mode tiles: a row of large tabs that each show one pane of a sidebar tab.
3
+ *
4
+ * Markup: `.mode-tiles[role=tablist] > button.mode-tile[role=tab][aria-controls=<pane id>]`,
5
+ * panes are any elements with those ids. The choice is remembered per `storageKey`.
6
+ */
7
+ export declare function initModeTiles(root: HTMLElement | null, storageKey?: string): (id: string) => void;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Model picker: a segmented control in front of the BirdNET model preset select.
3
+ * The select (and the URL field) stay the source of truth for BirdNETPanel; this only
4
+ * makes every model version visible and one click away. The URL field shows for "Custom".
5
+ */
6
+ export declare function initModelPicker(opts: {
7
+ seg: HTMLElement | null;
8
+ select: HTMLSelectElement | null;
9
+ urlInput: HTMLInputElement | null;
10
+ note?: HTMLElement | null;
11
+ }): () => void;
@@ -41,6 +41,8 @@ export declare class RecordingExplorer {
41
41
  _getEntryLabels: any;
42
42
  _getSetInfo: any;
43
43
  _isSetHidden: any;
44
+ /** Copies "Copy to mine" would still make of these labels (`all`: the recording's labels). */
45
+ _countAdoptable: ((labels: any[], all: any[]) => number) | null;
44
46
  _onToggleSetHidden: any;
45
47
  _onAdoptSet: any;
46
48
  _multiMode: boolean;
@@ -34,6 +34,7 @@ export declare class Sidebar {
34
34
  _sidebarEl: any;
35
35
  _storageKey: any;
36
36
  _title: any;
37
+ _hint: any;
37
38
  _workspace: any;
38
39
  defaultWidth: any;
39
40
  maxWidth: any;
@@ -42,6 +43,7 @@ export declare class Sidebar {
42
43
  side: any;
43
44
  storageKey: any;
44
45
  _collapsed: any;
46
+ _onChange: any;
45
47
  /**
46
48
  * @param {HTMLElement} workspace The .workspace flex container
47
49
  * @param {object} [options]
@@ -51,6 +53,7 @@ export declare class Sidebar {
51
53
  * @param {number} [options.minWidth] Min sidebar width (px)
52
54
  * @param {number} [options.maxWidth] Max sidebar width (px)
53
55
  * @param {() => void} [options.onResize] Called after sidebar resize
56
+ * @param {(id: string|null) => void} [options.onChange] Called after a panel is activated (id) or the sidebar collapsed (null)
54
57
  */
55
58
  constructor(workspace: any, options?: any);
56
59
  /**
@@ -59,11 +62,12 @@ export declare class Sidebar {
59
62
  * @param {object} opts
60
63
  * @param {string} opts.icon SVG string for the activity bar button
61
64
  * @param {string} opts.label Human-readable panel title
65
+ * @param {string} [opts.hint] One line under the title: what this tab is for
62
66
  * @param {HTMLElement} opts.element Panel content element (will be moved into sidebar)
63
67
  * @param {() => void} [opts.onActivate] Called when panel becomes active
64
68
  * @param {() => void} [opts.onDeactivate] Called when panel is deactivated
65
69
  */
66
- addPanel(id: any, { icon, label, element, onActivate, onDeactivate }: any): this;
70
+ addPanel(id: any, { icon, label, hint, element, onActivate, onDeactivate }: any): this;
67
71
  /** Activate a panel by id. */
68
72
  setActive(id: any): void;
69
73
  /** True while no panel is shown. */
@@ -75,6 +79,12 @@ export declare class Sidebar {
75
79
  /** Update badge text on an activity bar button. */
76
80
  setBadge(id: any, text: any): void;
77
81
  get activePanel(): any;
82
+ /** The sliding panel element (.sidebar). Used by the phone shell to show it as a bottom sheet. */
83
+ get element(): HTMLElement;
84
+ /** Label of a registered panel, or '' if unknown. */
85
+ panelLabel(id: string): string;
86
+ /** Change the callback fired on activate/collapse (set after construction by the phone shell). */
87
+ set onChange(fn: ((id: string | null) => void) | null);
78
88
  /**
79
89
  * Briefly animate an activity-bar button to draw attention (without switching tabs).
80
90
  * Safe to call when the panel is already active.
@@ -0,0 +1,29 @@
1
+ export interface SimilarHit {
2
+ path: string;
3
+ start: number;
4
+ end: number;
5
+ score: number;
6
+ label?: string | null;
7
+ }
8
+ export interface SimilarQuery {
9
+ path: string;
10
+ start: number;
11
+ end: number;
12
+ }
13
+ export interface SimilarPanelOptions {
14
+ /** Absolute project folder, or null when no folder project is open. */
15
+ getRoot: () => string | null;
16
+ /** Query window: current selection, else playhead, in the active recording. */
17
+ getQuery: () => SimilarQuery | null;
18
+ /** Open the hit's recording (if needed) and play / show the window. */
19
+ openHit: (hit: SimilarHit, play: boolean) => Promise<void> | void;
20
+ }
21
+ export declare class SimilarPanel {
22
+ #private;
23
+ el: HTMLElement;
24
+ constructor(opts: SimilarPanelOptions);
25
+ /** Reload model, store, labels and classifier status (on activate / project switch). */
26
+ refresh(): Promise<void>;
27
+ /** Search for a given span (e.g. a label: "find similar in project") instead of the selection. */
28
+ searchFor(q: SimilarQuery): Promise<void>;
29
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Species lists tab: build, edit, import/export and pick the list that limits BirdNET.
3
+ *
4
+ * ┌ Used for analysis ───────────────┐
5
+ * │ ◉ All species (model default) │ ← radio cards; one is active
6
+ * │ ○ Garden · 42 species › │ ← click a card to edit it below
7
+ * └──────────────────────────────────┘
8
+ * [+ New list] Empty · Expected here · From labels · Import file
9
+ * ── editor: name, search-to-add, filter, rows with remove, ⋯ menu ──
10
+ */
11
+ import { SpeciesListStore } from '../../domain/species-lists.ts';
12
+ export interface SpeciesListsPanelOpts {
13
+ store: SpeciesListStore;
14
+ /** Localised common name ('' when unknown). */
15
+ commonName: (sci: string) => string;
16
+ /** English model label name for the --slist export ('' when unknown). */
17
+ modelLabelName?: (sci: string) => string;
18
+ /** Canonical scientific name from the taxonomy, or '' when unknown. */
19
+ canonical: (nameOrSci: string) => string;
20
+ /** Species search widget factory (same as the label editor). */
21
+ speciesSearchFactory?: () => ((anchor: HTMLElement, onSelect: (item: any) => void) => {
22
+ el?: HTMLElement;
23
+ input: HTMLInputElement;
24
+ destroy(): void;
25
+ clear?(): void;
26
+ }) | null;
27
+ /** Species the area model expects at the recording's place and date (sorted by score). */
28
+ getExpectedSpecies?: (minScore: number) => Promise<{
29
+ species: string[];
30
+ place: string;
31
+ } | null>;
32
+ /** Scientific names labelled in the current project. */
33
+ getLabelledSpecies?: () => string[];
34
+ }
35
+ export declare class SpeciesListsPanel {
36
+ el: HTMLElement;
37
+ private o;
38
+ private editingId;
39
+ private filter;
40
+ private undo;
41
+ private search;
42
+ private els;
43
+ constructor(opts: SpeciesListsPanelOpts);
44
+ /** Re-render after taxonomy or language change. */
45
+ refresh(): void;
46
+ private bind;
47
+ private createList;
48
+ private importText;
49
+ private uniqueName;
50
+ private open;
51
+ private setStatus;
52
+ private render;
53
+ private renderEditor;
54
+ private renderRows;
55
+ private display;
56
+ private exportList;
57
+ private deleteList;
58
+ }
@@ -3,6 +3,7 @@
3
3
  * recording metadata display, annotation set management, XC API upload,
4
4
  * and XC-format JSON export.
5
5
  */
6
+ export declare const SET_LICENSES: string[];
6
7
  /** Upload servers: 'acc' is XC's acceptance server (behind HTTP Basic auth xc:xc) for test uploads. */
7
8
  export declare const XC_UPLOAD_TARGETS: Record<string, {
8
9
  env: string;
@@ -100,6 +101,8 @@ export declare class XenoCantoPanel {
100
101
  constructor(opts: any);
101
102
  /** Small "Audio cache: 120 MB · Clear" row below the API key section. */
102
103
  _buildCacheSection(): void;
104
+ /** Store the API key (localStorage) and tell the listeners. */
105
+ setApiKey(key: string): void;
103
106
  open(): void;
104
107
  close(): void;
105
108
  getAuthOptions(): {
@@ -180,6 +183,13 @@ export declare class XenoCantoPanel {
180
183
  message: any;
181
184
  warnings: any;
182
185
  errors: any;
186
+ setName?: undefined;
187
+ } | {
188
+ ok: boolean;
189
+ message: any;
190
+ warnings: any;
191
+ errors: any;
192
+ setName: string;
183
193
  }>;
184
194
  exportAnnotationSetJSON(labels: any, labelSets: any): Promise<import("../../infrastructure/saveFile.ts").SaveResult>;
185
195
  _setStatus(msg: any, type?: string): void;