/** * Capturing a session, once. * * The cookie is the fast path and stays the default everywhere else in this * server: it costs nothing, needs no browser, and every request uses it * directly. This file only exists to make getting that cookie less annoying * than digging through DevTools. * * Three ways, in the order they are worth trying: * * --paste (default) prompts you and stores what you paste. Instant, no * dependencies, works everywhere. * --playwriter reads the cookie out of the Chrome you already have open, * where you are already signed in. No launch, no sign-in. * --playwright launches its own browser and waits for you to sign in. The * slowest by a distance, and the only one that works headless * or on a machine with no Chrome. * * None of this runs while the server is running. `substack-mcp login` is a * separate command, and the drivers are imported inside it, so the server never * loads a browser and startup stays instant. */ import { sessionPath } from "./session.js"; export declare function runLogin(argv: string[]): Promise; export { sessionPath };