import type { HandlerContext } from './derived-core.js'; import { type Person } from './people.js'; type Writer = Pick; /** The value of the cookie `name` the request carries, as a browser sends it back. */ export declare function cookieOf(request: Request, name: string): string | undefined; /** The named session cookie; malformed encodings do not name a session. */ export declare function browserSessionToken(request: Request, name: string): string | undefined; /** The person the request's session cookie names, or undefined when nobody is signed in; with `scope`, only a session * begun in it (a vendor's sandbox dashboard and its production one sign a person in apart). */ export declare function signedIn(ctx: HandlerContext, cookie: string, scope?: string): Person | undefined; /** A new, independent sign-in, returning the cookie the vendor places on its response. */ export declare function startBrowserSession(ctx: Writer, email: string, cookie: string, scope?: string): Promise; /** End the session the request holds, then clear its cookie. Unknown cookies create no rows. */ export declare function endBrowserSession(ctx: Pick, cookie: string): Promise; export {};