import type { FastifyRequest } from "fastify"; import type { RequestMetadata } from "./types.js"; export type AuthenticationRequest = Pick; export declare function requestMetadata(request: FastifyRequest): RequestMetadata; export declare function bearerToken(request: AuthenticationRequest): string | undefined; /** The HttpOnly browser-session cookie issued only by the web gateway after authentication. */ export declare const authenticationCookieName = "happy2_auth_token"; /** * Returns the credential from the web gateway's exact HttpOnly cookie. It may be a * configured development token or a normal session JWT; both are verified by the * same durable-session checks as Authorization Bearer credentials. */ export declare function authenticationCookie(request: AuthenticationRequest): string | undefined; //# sourceMappingURL=metadata.d.ts.map