import { Session, type BaseCreateCtx } from './session.base'; export type StatefulCreateCtx = BaseCreateCtx & {}; /** * Represents a **stateful session** stored server-side (e.g., Redis). * Nested OAuth tokens are never exposed in the JWT; instead, they are * encrypted and persisted in Redis under a session key. The client only * receives a lightweight reference to that key. * * Advantages: * - Smaller JWT payloads and reduced token leakage risk. * - Can refresh nested provider tokens on the fly without requiring * the user to re-authorize. * - Well suited for multi-app setups with short-lived OAuth tokens. */ export declare class StatefulSession extends Session { #private; readonly mode = "stateful"; constructor(ctx: StatefulCreateCtx); getToken(providerId?: string): Promise | string; }