import http from "node:http"; import type { SessionContext } from "../session-types.js"; import { type DeviceTools } from "./devices.js"; import type { LivePreviewManager } from "./manager.js"; import { type PathAnswers, type ProjectPages } from "./pages.js"; /** Asks the dev server for a path: whether it serves it (2xx). Never follows redirects. */ export declare function pathAnswers(target: URL): PathAnswers; export declare function handleLivePreviewRoutes(manager: LivePreviewManager, ctx: SessionContext, req: http.IncomingMessage, res: http.ServerResponse, url: string, method: string, listPages?: (cwd: string, opts?: { answers?: PathAnswers; }) => Promise, detect?: () => Promise): boolean;