import Token, { TokenParamsInterface } from './Token'; /** * @interface CookieTokenParamsInterface * @param cookieDomain The cookie specific domain * @param cookieSecure Is the cookie secured */ export interface CookieTokenParamsInterface extends TokenParamsInterface { /** * The cookie specific domain * @defaultValue `window.location.hostname` */ cookieDomain?: string; /** * Is the cookie secured * @defaultValue `window.location.protocol === 'https:'` */ cookieSecure?: boolean; } /** * @class * CookieToken implementation */ declare class CookieToken extends Token { private readonly cookieDomain?; private readonly cookieSecure?; constructor(props: CookieTokenParamsInterface); /** * Set the Access Token from storage * @param token - AccessToken as string */ setAccessToken(token: string): void; /** * Get the Access Token from storage * @returns {string|undefined} The stored Access Token */ getAccessToken(): string | undefined; /** * Remove the Access Token from storage */ unsetAccessToken(): void; /** * Set the Refresh Token from storage * @param refreshToken - RefreshToken as string */ setRefreshToken(refreshToken: string): void; /** * Get the Refresh Token from storage * @returns {string|undefined} The stored Refresh Token */ getRefreshToken(): string | undefined; /** * Remove the Refresh Token from storage */ unsetRefreshToken(): void; } export default CookieToken;