17 lines
558 B
TypeScript
17 lines
558 B
TypeScript
import type { InternalOptions } from "../types";
|
|
import type { ResponseInternal } from "..";
|
|
import type { Session } from "../..";
|
|
import type { SessionStore } from "../lib/cookie";
|
|
interface SessionParams {
|
|
options: InternalOptions;
|
|
sessionStore: SessionStore;
|
|
isUpdate?: boolean;
|
|
newSession?: any;
|
|
}
|
|
/**
|
|
* Return a session object (without any private fields)
|
|
* for Single Page App clients
|
|
*/
|
|
export default function session(params: SessionParams): Promise<ResponseInternal<Session | {}>>;
|
|
export {};
|
|
//# sourceMappingURL=session.d.ts.map
|