import { type NextAuthOptions } from 'next-auth'; import type { Session } from '@jpmorganchase/mosaic-types'; import { MosaicMiddleware } from './createMiddlewareRunner.js'; /** * [[`SessionProps`]] specifies session object containing user profile of logged in user */ export interface SessionProps { session?: Session; } /** * [[`SessionOptions`]] specifies a configuration object for the withSession middleware */ export interface SessionOptions { /** is login required for the environment */ loginRequired: boolean; authOptions: NextAuthOptions; } /** * Adds the [[`Session`]] object to the page props * @param context * @param options */ export declare const withSession: MosaicMiddleware, SessionOptions>;