export class StubSelfUpdateCommand {
    shouldSucceed;
    errorMessage;
    permissionDenied;
    constructor(shouldSucceed = true, errorMessage = null, permissionDenied = false) {
        this.shouldSucceed = shouldSucceed;
        this.errorMessage = errorMessage;
        this.permissionDenied = permissionDenied;
    }
    async runGlobalUpdate() {
        if (this.shouldSucceed) {
            return { success: true, error: null, permissionDenied: false };
        }
        return { success: false, error: this.errorMessage, permissionDenied: this.permissionDenied };
    }
    async restartDaemon(_serverPort) {
        return;
    }
}
//# sourceMappingURL=selfUpdate.stub.js.map