Footnoteentry without footnote

Is there a way to detach the footnote entry from the footnote?

I want the footnotes at the end of the current chapter. My workaround to this works as the following:

#set page(paper: "a7")
== Chapter

#lorem(20) @foot1 @foot2
#lorem(20)
#lorem(20) @foot1
#lorem(20) @foot2

#text(white)[
#footnote[Footnote1]<foot1>
#footnote[Footnote2]<foot2>
]

It works fine beside accessibility for screenreaders and the clicking on the footnote entry jumps to the invisible footnote.

Is there a way to hide the footnote entirely without hiding the footnote in the footnoteentry?

It might be more straightforward to implement an endnote function. Metadata - Typst Examples Book has an example. It works like this:


You can hide and place. hide makes the body invisible, and place makes the body take no space in the flow of content.

#place(hide[
  #footnote[Footnote1]<foot1>
  #footnote[Footnote2]<foot2>
])