Best-selling Irish author Emma Hannigan has revealed that she is dying and does not have long to live.

"The time that I knew was borrowed must be given back soon, so it seems," the author, who lives in Bray, Co Wicklow, posted on her website.

"The conversation I never wanted to have has been said.

Read More: Bucket list trip to Ireland for cancer-stricken granny thanks to Irish stranger

"My medical team have thrown everything but the kitchen sink at this fight but all avenues have now been exhausted.

"To say that I am heartbroken doesn’t begin to cover it."

In 2005, the mother-of-two was told she carries the BrCa1 gene, which increases here risk of developing breast and ovarian cancer. She had her breasts and ovaries removed in 2006 but still developed cancer 10 times over the last decade, the Irish Examiner reports.

She wrote a memoir, All to Live For, documenting her battle with cancer.

Emma Hannigan. Credit: Facebook

Emma Hannigan. Credit: Facebook

On her website, the 45-year-old thanked her fans for their support through the years.

"I’ve gained such strength from all of you. We’ve shared tips and hints and stories over the years. For all of it – thank you.

"Thank you for taking my hand when I needed it most and for posting all sorts from doggy snaps to moggy pics and the rest.

"We’ve made a great team."

She went on to say that her love for her husband Cian, son Sacha, daughter Kim, family, friends, and readers is “all that matters now.”

"Faced with very little time can I tell you what screams out at me? Love. Nothing else has much meaning anymore. Just the love I feel for the people I hold dear. My two babies (ok they both tower over me, but I’m still allowed call them my babies) my husband, my parents, my family, my friends and readers.

Look! My 1st copy of my new novel! Out Feb 1st #LettersToMyDaughters

— Emma Hannigan Author (@MsEmmaHannigan) January 4, 2018

"The love in my heart is all that matters now. I am broken-hearted at having to say goodbye so if it’s alright we’ll say farewell instead."

She added, “"Life is so very precious. We never know the day or hour that it will be whipped away. So fill your days with as much happiness as you can muster."

Her 13th book, Letters to my Daughters, was released this month.

Read More: Irish author Cathy Kelly on that special bond between sisters

"Usually I’d spend a next few weeks chatting about it and inevitably daring to wonder if you like it. Because this is the time when all authors want to hide in the back of the wardrobe in case nobody likes their new baby! I won’t need to hide, unfortunately, but I sincerely hope you enjoy it."

"Farewell and thank you, I am taking a bow. Until we meet again may all that is good and decent be yours."