/** * Navidrome MCP Server - Web remote session and device cookies * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ export declare const JOIN_ROUTE_PATH = "/api/auth/join"; /** * Browsers share cookies across every port of a host name, so the name carries the port to keep two * players apart. The `__Host-` prefix makes the browser refuse the cookie unless it is Secure, * host-only and on `/`, which only an HTTPS listener can set. */ export declare function sessionCookieName(port: number, secure: boolean): string; /** The port rule of `sessionCookieName`, with no `__Host-` prefix, since that prefix requires `Path=/`. */ export declare function deviceCookieName(port: number): string; /** Every value is returned, since a stale cookie of the same name may come first. */ export declare function readCookieValues(header: string | undefined, name: string): string[]; export declare function serializeSessionCookie(name: string, token: string, maxAgeSeconds: number, secure: boolean): string; export declare function serializeDeviceCookie(name: string, deviceId: string, secure: boolean): string; //# sourceMappingURL=session-cookie.d.ts.map