export class StubSupervisorHealthGateway {
    state = {
        status: 'up',
        lastCheckAt: null,
        lastDownReason: null,
    };
    read() {
        return { ...this.state };
    }
    update(status, reason, checkedAt) {
        this.state = {
            status,
            lastCheckAt: checkedAt,
            lastDownReason: status === 'down' ? reason : null,
        };
    }
}
//# sourceMappingURL=supervisorHealth.stub.js.map