/** Increments failure count. Returns true the first time the threshold is crossed. */ export declare function recordFailure(mac: string, threshold: number): boolean; /** Resets failure count. Returns true if the device was previously offline. */ export declare function recordSuccess(mac: string): boolean; export declare function isOffline(mac: string): boolean; /** * Like recordFailure, but counts a shared probe error only once. All * callbacks coalesced onto one in-flight UDP request receive the same Error * instance, so one dropped packet must count as one failure — not one per * piggybacked characteristic. */ export declare function recordFailureOnce(error: Error, mac: string, threshold: number): boolean;