# How to construct a confidence interval for p-value

I have a simple query regarding the construction of a confidence interval for a p-value. How do I construct such a confidence interval? Like we construct a C.I. for t-value ($\bar{X} \pm t \times(s/ \sqrt{n})$), can such kind of intervals be created for p-value?

I think (not completely sure) such C.I. for p-value is called replication interval. I tried googling but couldn't find anything relevant.