https://www.border.gov.au/Trav/Citi/Appl/What-documents-do-you-need/variation-to-the-residence-requirement
If you have spent time outside Australia as a permanent resident with your Australian citizen spouse or partner, or are the surviving spouse or partner of an Australian citizen and have a close and continuing association with Australia, then that period of time may be treated as time spent in Australia.
If you spent time outside Australia and are a permanent resident in an interdependent relationship with an Australian citizen and you have had a close and continuing association with Australia, then that period of time may be treated as time spent in Australia.