import type { SessionTokenSet } from "@inrupt/solid-client-authn-core"; /** * Refresh the Access Token and ID Token using the Refresh Token. * The tokens may not be expired in order to be refreshed. * * @param tokenSet the tokens to refresh * @returns a new set of tokens * @since 2.4.0 * @example * ``` * const refreshedTokens = await refreshTokens(previousTokenSet); * const session = await Session.fromTokens(refreshedTokens, sessionId); * ``` */ export declare function refreshTokens(tokenSet: SessionTokenSet): Promise; /** * Performs an RP-initiated logout at the OpenID Provider associated to a user session using the provided token set. * After this has completed, the user will be logged out of their OpenID Provider. This terminates their current browsing * session on any active Solid application. * * @param tokenSet The set of tokens associated to the session being logged out. This must contain a valid ID token. * @param redirectHandler Function to redirect the user to the logout URL * @param postLogoutUrl An optional URL to be redirected to by the OpenID Provider after logout has been completed * @returns A Promise that resolves once the logout process is initiated * @since unreleased * @example * ```typescript * // Express.js logout endpoint * app.get("/logout", async (req, res) => { * const tokenSet = ...; * await logout( * tokenSet, * // Provide an express.js-specific redirect handler * (url) => { * res.redirect(url); * } * ); * }); * ``` */ export declare function logout(tokenSet: SessionTokenSet, redirectHandler: (url: string) => void, postLogoutUrl?: string): Promise;