The below confirms a Passport with the right immigration stamps should cover Proof of Living in the UK.
From Guide AN Naturalisation Booklet. The Requirements and The Process
Residence Requirements
Absences
You should supply the following documents to show you have been mainly in the UK
during the 5 years (or, if married to or in civil partnership to a British citizen, 3 years)
before making your application:
• Your passports
• If you are unable to provide your passport, explain why and supply letters from
employers (including start and finish dates), payslips, P60s, educational
establishments or other government departments indicating your presence in the
United Kingdom during the relevant period
Examples of documents that can be used to show you have been in the UK for the
required time period, can be found here.
Although we do not normally accept doctors’ letters on their own as proof of presence,
these may be accepted if nothing else is available and the doctors can confirm that they
have seen you on a regular basis during the period concerned.
If your passport is not stamped when you come into the United Kingdom, you must still
provide your passport, but also provide alternative evidence of presence as above.
Please note, you do not need to submit documents that have been uploaded as
part of previous immigration applications – we will have a record of these and will
consider them in support of your application.
And subsequently this from the Nationality policy: Naturalisation as a British citizen by discretion
(Published for Home Office staff on 28 June 2022)
Absences
You must check the available evidence to see whether an applicant meets the
residence requirements.
The following can be used as evidence of residence:
• passports or travel documents which have been stamped to show arrival in the
UK and entry and departure from other countries: these should be checked
against the list of absences that applicants are asked to provide on the
application form
• Home Office records
• if the applicant does not have passports to cover the qualifying period, other
evidence such as employers’ letters or tax and National Insurance letters:
• in such cases you should assess whether there is sufficient evidence to
show that that applicant has been resident in the UK during the qualifying
period, giving them the benefit of any doubt where claimed absences are
within the limits we would normally allow and there are no grounds to doubt
the accuracy of the claim
You must not normally accept doctors' letters on their own as proof of residence.
However, if nothing else is available and the doctors can confirm that they have seen
the applicant on a regular basis during the period concerned these may be accepted.
If there are gaps in a person’s evidence of residence and it is clear from the
information available that they could not have travelled, you must accept this.
Examples of this might include a refugee who has no means of travel or where
immigration records confirm continuous residence.
You must only count whole days' absences from the UK. You must not count the
dates of departure and arrival as absences. For example, a person who left the UK
on 22 September and returned on 23 September will not be classed as having been
absent from the UK.
An applicant only needs to have been physically present in the UK for the purpose of
the act. They do not have to have been ordinarily resident or domiciled here