2026-06-09 12:34:15 -07:00
|
|
|
import { Monitor, MonitorType } from "@/domain/monitors/monitor.types.js";
|
2026-03-04 23:24:48 +00:00
|
|
|
import { MonitorStatusResponse } from "@/types/network.js";
|
|
|
|
|
|
|
|
|
|
export interface IStatusProvider<T> {
|
|
|
|
|
type: string;
|
|
|
|
|
supports: (type: MonitorType) => boolean;
|
|
|
|
|
handle(monitor: Monitor): Promise<MonitorStatusResponse<T>>;
|
|
|
|
|
}
|