import { ExternalUserId } from './index'; export declare type Awaitable = Promise | T; export interface State { userId: string; accessToken: string; refreshToken?: string; tokenExpiresAt?: string; } export interface Storage { get(userId: ExternalUserId): Promise; set(userId: ExternalUserId, state: State | undefined): Awaitable; } export declare class InMemoryStorage implements Storage { storage: Record; constructor(); get(userId: ExternalUserId): Promise; set(userId: ExternalUserId, state: State | undefined): Promise; }