declare const SESSION_COOKIE: string; declare const SESSION_TTL_SECONDS: number; declare const SESSION_REMEMBER_TTL_SECONDS: number; interface CreateSessionCookieOptions { remember?: boolean; } interface SignedSession { userId: number; issuedAt: number; } declare function sessionCookieName(): string; declare function sessionTtlSeconds(): number; declare function sessionRememberTtlSeconds(): number; declare function readSession(request: Request): SignedSession | null; declare function readSessionUserId(request: Request): number | null; declare function isSessionInvalidated(issuedAt: number, validAfter: Date | string | null | undefined): boolean; interface SessionCookieDetails { header: string; userId: number; issuedAt: number; ttlSeconds: number; } declare function createSessionCookieDetails(userId: number, options?: CreateSessionCookieOptions): SessionCookieDetails; declare function createSessionCookie(userId: number, options?: CreateSessionCookieOptions): string; declare function clearSessionCookie(): string; export type { CreateSessionCookieOptions, SessionCookieDetails, SignedSession }; export { clearSessionCookie, createSessionCookie, createSessionCookieDetails, isSessionInvalidated, readSession, readSessionUserId, SESSION_COOKIE, SESSION_REMEMBER_TTL_SECONDS, SESSION_TTL_SECONDS, sessionCookieName, sessionRememberTtlSeconds, sessionTtlSeconds, };