export interface IsAuthenticatedPropsWithRefreshToken { useRefreshToken?: true; domain: string; clientId: string; /** * Threshold in seconds to expire the token before the actual expiry */ expiredThreshold?: number; } export interface IsAuthenticatedPropsWithoutRefreshToken { useRefreshToken?: false; domain?: never; clientId?: never; expiredThreshold?: number; } type IsAuthenticatedProps = IsAuthenticatedPropsWithRefreshToken | IsAuthenticatedPropsWithoutRefreshToken; /** * check if the user is authenticated with option to refresh the token * @returns { Promise } */ export declare const isAuthenticated: (props?: IsAuthenticatedProps) => Promise; export {};