import { AuthCredentials } from '../types/auth'; /** * Checks if the provided credentials' access token has expired. * * @param {AuthCredentials} credentials - The authentication credentials * containing the access token. * @returns {boolean} - Returns true if the token has expired or * is not available, otherwise false. */ export declare const accessTokenHasExpired: (credentials: AuthCredentials) => boolean; /** * Retrieves the server-issued tracking ID from the token or from an earlier * token for the same profile. OAuth sub is only used to check the profile; * it is never used as the tracking ID. * * @param {AuthCredentials} credentials - The authentication credentials * containing the access token. * @returns {string | null} - Returns the user ID if available, * otherwise null. */ export declare const getNetworkUserId: (credentials: AuthCredentials) => string | null; /** * Refresh responses can omit subn. Retain the server-issued ID with the new * credentials only when both tokens identify the same profile. This local * metadata is persisted by the storage adapter; the JWT is never modified. */ export declare const retainTrackingIdentity: (credentials: AuthCredentials, previousCredentials?: AuthCredentials) => AuthCredentials;