input: def create_blog_post_crud_api() -> Flask:
      """
      Create a basic CRUD (Create, Read, Update, Delete) API for a BlogPost model using Flask.
      The API should include endpoints for creating a post, getting all posts, getting a single post,
      editing a post, and deleting a post.
      The BlogPost model has the following fields:
      - id (integer, primary key)
      - title (string, length up to 200)
      - content (text)
      The API should return JSON responses for all endpoints.
  
      Example usage:
      >>> app = create_blog_post_crud_api()
      >>> app.config['TESTING'] = True
      >>> client = app.test_client()
      >>> response = client.post('/post', json={'title': 'Test Post', 'content': 'This is a test post.'})
      >>> response.status_code
      200
      >>> response.json
      {'id': 1}
      >>> response = client.get('/posts')
      >>> response.status_code
      200
      >>> response.json
      [{'id': 1, 'title': 'Test Post', 'content': 'This is a test post.'}]
      """
output:     
      from flask import Flask, request, jsonify
      from flask_sqlalchemy import SQLAlchemy
  
      app = Flask(__name__)
      app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///blog.db'
      db = SQLAlchemy(app)
  
      class BlogPost(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          title = db.Column(db.String(200), nullable=False)
          content = db.Column(db.Text, nullable=False)
  
      db.create_all()
  
      @app.route('/post', methods=['POST'])
      def create_post():
          data = request.json
          new_post = BlogPost(title=data['title'], content=data['content'])
          db.session.add(new_post)
          db.session.commit()
          return jsonify({'id': new_post.id})
  
      @app.route('/posts', methods=['GET'])
      def get_posts():
          posts = BlogPost.query.all()
          return jsonify([{'id': post.id, 'title': post.title, 'content': post.content} for post in posts])
  
      @app.route('/post/<int:post_id>', methods=['GET'])
      def get_post(post_id):
          post = BlogPost.query.get_or_404(post_id)
          return jsonify({'id': post.id, 'title': post.title, 'content': post.content})
  
      @app.route('/post/<int:post_id>', methods=['PUT'])
      def update_post(post_id):
          post = BlogPost.query.get_or_404(post_id)
          data = request.json
          post.title = data.get('title', post.title)
          post.content = data.get('content', post.content)
          db.session.commit()
          return jsonify({'id': post.id})
  
      @app.route('/post/<int:post_id>', methods=['DELETE'])
      def delete_post(post_id):
          post = BlogPost.query.get_or_404(post_id)
          db.session.delete(post)
          db.session.commit()
          return jsonify({'result': 'Post deleted'})
  
      return app
  