@builder.io/dev-tools
Version:
Builder.io Visual CMS Devtools
16 lines (15 loc) • 834 B
TypeScript
import type { DevToolsSys } from "../../types";
import type { ProxyMiddleware } from "../../types/proxy-middleware";
import type { IncomingMessage } from "node:http";
export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<typeof IncomingMessage, typeof import("http").ServerResponse, Error>;
export declare const createProxyMiddleware: (serverUrl: URL, sys: DevToolsSys) => ProxyMiddleware | undefined;
export declare const isDesktopAppRequest: (req: IncomingMessage) => boolean;
/**
* Detects if HTML was server-side rendered by checking for framework-specific markers.
* Returns whether SSR was used and whether the header/head was server-rendered.
*/
export declare const detectSSR: (body: string) => {
hasSSR: boolean;
hasHeaderSSR: boolean;
};
export declare const permissiveHTTPS: any;