Problems with export variable

Godot Version

4.2.1

Question

Hello! Getting back in to coding after almost 10 years, making a small game. I recently decided to convert a bunch of code so it is more universal, health, speed, ect. but am running into two errors. Here is the code:

1extends CharacterBody2D

4@export(int) var hp_max int = 100
5@export(int) var hp: int = hp_max
6@export(int) var defense: int = 0

8@export(int) var SPEED: int = 25
9var velocity: Vector2 = Vector2.ZERO

11@onready var sprite = $Sprite2D
12@onready var collShape = $CollisionShape2D
13@onready var animPlayer = $AnimationPlayer

16func _physics_process(delta):
17 move()

20func move():
21 velocity = move_and_slide(velocity)

24func die():
25 queue_free()

ERRORS OUTPUT:

Line 4:Annotation “@export” requires at most 0 arguments, but 1 were given.
Line 4:Expected end of statement after variable declaration, found “Identifier” instead.
Line 5:Annotation “@export” requires at most 0 arguments, but 1 were given.
Line 6:Annotation “@export” requires at most 0 arguments, but 1 were given.
Line 8:Annotation “@export” requires at most 0 arguments, but 1 were given.

@export doesn’t take the type like that. this page gives examples of how to use @export