import { GatewayToken, State } from '../types'; export declare const hasExpired: (expiryTime: number) => boolean; export declare const isTokenRefreshRequired: ({ gatewayToken, tokenExpirationMarginSeconds, }: { gatewayToken?: GatewayToken | undefined; tokenExpirationMarginSeconds: number; }) => boolean; export declare const MAX_ALLOWED_TIMEOUT = 2147483647; export declare const nowSeconds: () => number; /** * return the expiry time in milliseconds from the current time until the gateway token expires * taking into account a margin (if provided). If the interval is too large for a javascript timer * then return the maximum allowed timeout * @param {number} expiryTimeSeconds * @param {number} tokenExpirationMarginSeconds * @returns {number} */ export declare const getTokenRefreshIntervalMilliseconds: (expiryTimeSeconds: number, tokenExpirationMarginSeconds: number) => number; export declare const isTokenActive: (token?: { state: State | undefined; expiryTime?: number | undefined; }) => boolean;