export declare function refreshTokenWhenExpire(fn: () => Promise | T): Promise;